plot2c.m

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

M
33
字号
function  nt= plot2c(t,c,i)
 
% The function PLOT2C plots 2 subplots starting from the I-th component
% of the data c(n,k), where n is the number of data points and
% k is the number of IMF components.
% The number of subplots in vertical direction is equal to 2.
% The image on the screen closes all existing figures.
%
% Calling sequence-
% nt=plot2c(t,c,i)
%
% Input-
%	t		    - vector t(n) representing the 
%				time scale values
%	c		    - component data array c(n,k)
%	i		    - index of the first plotted component 
% Output-
%	nt		    - the handle of the figure
 
% Z. Shen (Caltech)		Initial

close;

tn=length(t);
for j=i:i+1
   subplot(2,1,j+1-i),plot(t,c(:,j),'linew',.1);
   axis([t(1) t(tn) min(c(:,j)) max(c(:,j))]);	
   s1='c';
   s2=[s1 num2str(j)];
   ylabel(s2);
end
nt=1;

⌨️ 快捷键说明

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