nt_plot_mmx - plot data using min-max pairs nt_plot_mmx(x): plot x nt_plot_mmx(abscissa,x): plot x using abscissa nt_plot_mmx(abscissa,x,N): plot x using abscissa, with specified target number of min-max pairs [default: 1000]
0001 function nt_plot_mmx(a,b,c) 0002 %nt_plot_mmx - plot data using min-max pairs 0003 % 0004 % nt_plot_mmx(x): plot x 0005 % nt_plot_mmx(abscissa,x): plot x using abscissa 0006 % nt_plot_mmx(abscissa,x,N): plot x using abscissa, with specified target number of min-max pairs [default: 1000] 0007 0008 error('not yet implemented'); 0009 0010 if nargin < 3 || isempty(c); N=1000; else N=c; end 0011 if nargin < 2 || isempty(b); 0012 x=a; 0013 abscissa=1:size(x,1); 0014 else 0015 x=b; 0016 abscissa=a; 0017 end 0018 0019 [mmx_pairs,a]=nt_mmx(x); 0020 abscissa=abscissa(a+1); 0021 plot(abscissa,x); 0022 0023