mu_tsensemble_create.m
来自「时间序列分析中很用的源码,书的原名为时间序列分析的小波方法.」· M 代码 · 共 55 行
M
55 行
function tse = MU_tsensemble_create(tsensemble)if(~exist('tsensemble', 'var') || isempty(tsensemble)) error('MUNIT:MissingRequiredArgument', ... [mfilename, ' requires a tsensemble argument.']);endif (isa(tsensemble, 'function_handle')) tse_file = func2str(tsensemble); pathstr = '';else [pathstr, name, ext, versn] = fileparts(tsensemble); if (~isempty(pathstr)) tse_file = name; else tse_file = tsensemble; endend%% Verify that tsensemble function file exists current pathif (isempty(pathstr)) if (isempty(which(tse_file))) error('MUNIT:UnknownTestsensemble', ... ['Testsensemble (', tse_file, ') not found']); end%% else, verify tsensemble function file exists in alternate pathelse if (~exist(fullfile(pathstr, [name '.m']))) error('MUNIT:UnknownTestsensemble', ... ['Testsensemble (', tse_file, ') not found']); endend curpath = pwd;try if (~isempty(pathstr)) cd(pathstr); end tse = feval(tse_file); if (~isempty(pathstr)) cd(curpath); endcatch err = lasterror; cd(curpath);% rethrow(err); error('MUNIT:MU_tsensemble_case:creationError', ... ['Error creating test suite ensemble (', tse_file, ').']);endreturn
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?