www.pudn.com > zxb.rar > mplot.m


function mplot(s) 
%同时画多个信号的画图程序 
%最多画六个信号 
[dim,sample]=size(s); 
if dim>sample 
    s=s'; 
    [dim,sample]=size(s); 
end 
if dim>6 
    error('dim can not more than six'); 
end 
 
for i=1:dim 
    subplot(dim,1,i); 
    plot(s(i,:)); 
    axis('tight'); 
    set(gca,'XTick',[]); 
end