matlab - how to plot each profile with a distance from the other in a 2D plot? -
i want plot http://www.nature.com/nprot/journal/v9/n6/fig_tab/nprot.2014.090_f7.html or 1 http://file.scirp.org/html/11-2200285/ff6819f9-5db9-4121-852d-a8d5c302a5a4.jpg have 2d matrix.
i tried plot did not work
figure; hold on = 1:size(x,1) plot(x(i,:)+10) end
since not specify not work, having difficulties answer question directly (i not have enough reputation comment).
the following code results in image ones link. maybe forgot multiply y-shift iteration number i.
n = 200; x = 1:n; m = 5; x = sin(kron(x,ones(m,1))); figure; hold all; i=1:n plot(x(i,:)+i*5); end
Comments
Post a Comment