siglevel.m

来自「时间序列分析的信号处理MATLAB工具包」· M 代码 · 共 57 行

M
57
字号
function [status,datafiles] = siglevel(s,datafiles)% print count of renamings.str=history(s);if ~isempty(datafiles)  m=length(datafiles(:,1))+1;else  disp('There are no loaded files...');  m=1;endn=0;status=-1;lasttoken='';%disp(['add new datafiless ' name(s)]);%disp(str);for i=1:length(str(:,1))  [token,rem]=strtok(str(i,:),'>');  rem=rem(2:length(rem));  [token,rem]=strtok(rem,'<');  if token & ~strcmp(lasttoken,token)    lasttoken=token;    if n            m=m+1;      for i1=1:n	datafiles(m,i1)=datafiles(m-1,i1);      end    end    n=n+1;    datafiles(m,n)=cellstr(token);    status=0;  endendif ~strcmp(lasttoken,name(s))    if n            m=m+1;      for i1=1:n	datafiles(m,i1)=datafiles(m-1,i1);      end    end    n=n+1;        datafiles(m,n)=cellstr(name(s));end  %disp(datafiles);datafiles(cellfun('isempty',datafiles))=cellstr('');return

⌨️ 快捷键说明

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