📄 demo.m
字号:
% DEMO
% Copyright (c) Angshul Majumdar 2009
[A, y, group, x0] = GenGroupSparseProblem(100, 150, 25, 3);
[sGOMP, residual] = GOMP(A, y, group, 3);
stem(x0), hold on, stem(sGOMP,'r+')
close
[sBOMP, residual] = BOMP(A, y, group, 3);
stem(x0), hold on, stem(sBOMP,'r+')
close
[sStGOMP, residual] = StGOMP(A, y, group, 5);
stem(x0), hold on, stem(sStGOMP,'r+')
close
[sReGOMP, residual] = ReGOMP(A, y, group, 3);
stem(x0), hold on, stem(sReGOMP,'r+')
close
[sGMP, residual] = GMP(A, y, group);
stem(x0), hold on, stem(sGMP,'r+')
close
[sBMP, residual] = BMP(A, y, group);
stem(x0), hold on, stem(sBMP,'r+')
close
[sBGP, err_mse, iter_time] = block_gp(y,A,group);
stem(x0), hold on, stem(sBGP,'r+')
close
[sGGP, err_mse, iter_time] = group_gp(y,A,group);
stem(x0), hold on, stem(sGGP,'r+')
close
[sBNOMP, err_mse, iter_time] = block_nomp(y,A,group);
stem(x0), hold on, stem(sBNOMP,'r+')
close
[sGNOMP, err_mse, iter_time] = group_nomp(y,A,group);
stem(x0), hold on, stem(sGNOMP,'r+')
close
[sBPCGP, err_mse, iter_time] = block_pcgp(y,A,group);
stem(x0), hold on, stem(sBPCGP,'r+')
close
[sPCGP, err_mse, iter_time] = group_pcgp(y,A,group);
stem(x0), hold on, stem(sPCGP,'r+')
close
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -