资源简介

很强大的压缩感知Matlab学习代码,根据压缩感知最初的算法编写。内含多个算法与示例。

资源截图

代码片段和文件信息

% l1dantzig_example.m
%
% Test out l1dantzig code (l1 minimization with bounded residual correlation).
%
% Written by: Justin Romberg Caltech
% Email: jrom@acm.caltech.edu
% Created: October 2005
%

% put optimization code in path if not already there
path(path ‘./Optimization‘);

% signal length
N = 512;

% number of spikes to put down
T = 20;

% number of observations to make
K = 120;

% random +/- 1 signal
x = zeros(N1);
q = randperm(N);
x(q(1:T)) = sign(randn(T1));

% measurement matrix = random projection
disp(‘Creating measurment matrix...‘);
A = randn(KN);
A = orth(A‘)‘;
disp(‘Done.‘);

% noisy observations
sigma = 0.005;
e = sigma*randn(K1);
y = A*x + e;

% initial guess = min energy
x0 = A‘*y;

% Dantzig selection
epsilon = 3e-3;
tic
xp = l1dantzig_pd(x0 A [] y epsilon 5e-2);
toc


% large scale
% Afun = @(z) A*z;
% Atfun = @(z) A‘*z;
% tic
% xp = l1dantzig_pd(x0 Afun Atfun y epsilon 5e-2 50 1e-8 500);
% toc





 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2011-04-26 08:59  l1magic\
     文件       12292  2011-04-26 08:59  l1magic\.DS_Store
     目录           0  2011-04-26 08:59  l1magic\Data\
     文件        6148  2011-04-26 08:59  l1magic\Data\.DS_Store
     文件       65728  2008-01-15 12:10  l1magic\Data\boats.mat
     文件       65728  2008-01-15 12:10  l1magic\Data\camera.mat
     文件         543  2008-01-15 12:10  l1magic\Data\RandomStates.mat
     文件         955  2008-01-15 12:10  l1magic\l1dantzig_example.m
     文件         644  2008-01-15 12:10  l1magic\l1decode_example.m
     文件        1003  2008-01-15 12:10  l1magic\l1eq_example.m
     文件        1114  2008-01-15 12:10  l1magic\l1qc_example.m
     目录           0  2011-04-26 08:59  l1magic\Measurements\
     文件        6148  2011-04-26 08:59  l1magic\Measurements\.DS_Store
     文件         659  2008-01-15 12:10  l1magic\Measurements\A_f.m
     文件         576  2008-01-15 12:10  l1magic\Measurements\A_fhp.m
     文件         718  2008-01-15 12:10  l1magic\Measurements\At_f.m
     文件         613  2008-01-15 12:10  l1magic\Measurements\At_fhp.m
     文件         832  2008-01-15 12:10  l1magic\Measurements\LineMask.m
     目录           0  2011-04-26 08:59  l1magic\Notes\
     文件        6148  2011-04-26 08:59  l1magic\Notes\.DS_Store
     目录           0  2008-08-06 07:26  l1magic\Notes\Figs\
     目录           0  2008-08-06 07:25  l1magic\Notes\Figs\CVS\
     文件         740  2008-01-15 12:10  l1magic\Notes\Figs\CVS\Entries
     文件          18  2008-01-15 12:10  l1magic\Notes\Figs\CVS\Repository
     文件          41  2008-01-15 12:11  l1magic\Notes\Figs\CVS\Root
     文件       12278  2008-01-15 12:11  l1magic\Notes\Figs\l1eqexample_minl2.eps
     文件        5382  2008-01-15 12:11  l1magic\Notes\Figs\l1eqexample_minl2.pdf
     文件       11417  2008-01-15 12:11  l1magic\Notes\Figs\l1eqexample_recovered.eps
     文件        3997  2008-01-15 12:11  l1magic\Notes\Figs\l1eqexample_recovered.pdf
     文件       11292  2008-01-15 12:11  l1magic\Notes\Figs\l1eqexample_signal.eps
     文件        2850  2008-01-15 12:11  l1magic\Notes\Figs\l1eqexample_signal.pdf
............此处省略35个文件信息

评论

共有 条评论