www.gusucode.com > 压缩感知重构算法 压缩感知源码程序 > PlotSpikes.m
function PlotSpikes(base,t,x) % PlotSpikes -- Plot 1-d signal as baseline with series of spikes % Usage % PlotSpikes(base,t,x) % Inputs % base number, baseline level % t ordinate values % x 1-d signal, specifies spike deflections from baseline % % Side Effects % A plot of spikes on a baseline % % See Also % PlotWaveCoeff, PlotPacketTable % tt = [t ; t ; t ]; b = zeros(size(x)) + base; xx = [b ; x+base ; b ]; u = [ 0 ; tt(:) ; 1 ]; v = [ base ; xx(:) ; base ]; plot(u,v); % % Copyright (c) 2006. David Donoho % % % Part of SparseLab Version:100 % Created Tuesday March 28, 2006 % This is Copyrighted Material % For Copying permissions see COPYING.m % Comments? e-mail sparselab@stanford.edu %