plotnc.m

来自「一种新的时频分析方法的matlab源程序。」· M 代码 · 共 29 行

M
29
字号
function  nt= plotnc(t,c,start,stop,fig_num)
% plotnc(t,c,start,stop,fig_num,stitle,xunits)
%		t is time axis
%		c is component array
%		plot begins from the component 'start'
%		plot ends at component stop
%		plot appears in Figure fig_num
%
% --- Steven R. Long at NASA GSFC / WFF --- Version 03/25/99 -- %
% --- Based on an Older Approach by Z. Shen ------------------- %

figure(fig_num);
clf;
tn=length(t);
t1=min(t(1),t(tn));
t2=max(t(1),t(tn));
for j=start:stop;
   subplot(stop-start+1,1,j+1-start),plot(t,c(:,j));
   axis([t1 t2 min(c(:,j)) max(c(:,j))]);	
   s1='c';
   s2=[s1 num2str(j)];
   ylabel(s2);
   if(j < stop);
      set(gca,'xticklabel','');
   end;
end;


⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?