startup.m
来自「时间序列分析中很用的源码,书的原名为时间序列分析的小波方法.」· M 代码 · 共 59 行
M
59 行
% startup.m - Startup file for WMTSA package%%% $Id: startup.m 629 2006-05-02 20:46:48Z ccornish $% Get path to this startup filethis_file = mfilename('fullpath');[wmtsa_path, filename, ext, versn] = fileparts(this_file);% Set pathsaddpath([wmtsa_path filesep 'dwt']); % 1-D DWT and core wavelet analysis functionsaddpath([wmtsa_path filesep 'utils']); % General utility functionsaddpath([wmtsa_path filesep 'plotutils']); % WMTSA plotting routines addpath([wmtsa_path filesep 'signal']); % Signal processing functionsaddpath([wmtsa_path filesep 'stats']); % Statistic functionsaddpath([wmtsa_path filesep 'data']); % Sample data setsaddpath([wmtsa_path filesep 'third-party']); % Third-party routines required fo WMTSA% Compile MEX files if necessarycur_dir = pwd;src_dir = [wmtsa_path filesep 'dwt'];mex_function_list = {'modwtj', 'imodwtj', 'dwtj'};cd(src_dir);for (i = 1:length(mex_function_list)) mex_function = mex_function_list{i}; mex_function_exe_file = [mex_function '.' mexext]; mex_function_src_file = [mex_function '.c']; if (isempty(which(mex_function)) || ~exist([src_dir filesep mex_function_exe_file], 'file')) disp(['Compiling ' mex_function_src_file '...']); mex(mex_function_src_file); end endcd(cur_dir);% Cleanupclear this_file;clear wmtsa_path filename ext versn;clear mex_function_list mex_function mex_function_exe_file mex_function_src_file;clear src_dir cur_dir;
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?