⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 uninstall_emd.m

📁 经验模式分解源码 学习希尔波特黄变换的参考程序 源于Internet网络
💻 M
字号:
% UNINSTALL_EMD.M uninstall the EMD package% reverts the modifications made by INSTALL_EMD:% removes the following locations from Matlab's path:% <EMD_BASEDIR>% <EMD_BASEDIR>/utils% <EMD_BASEDIR>/examples/NSIP2003% <EMD_BASEDIR>/examples/SPL2007%% where <EMD_BASEDIR> is the directory containing uninstall_emd.m%% UNINSTALL_EMD also interactively proposes to remove the files from the hard drive%% IMPORTANT: After running UNINSTALL_EMD you must run the "savepath" command to save the modifications made % to Matlab's path but be careful that if you previously removed parts of the path (using e.g. the "rmpath" command) % these will be permanently removed after you run "savepath"function uninstall_emdbase_dir = fileparts(which('uninstall_emd'));rmpath(base_dir)rmpath([base_dir,'/EMDs'])rmpath([base_dir,'/utils'])rmpath([base_dir,'/examples/NSIP2003'])rmpath([base_dir,'/examples/SPL2007'])reply = input('Would you like to remove the files from the hard drive? Y/N [N]: ', 's');if isempty(reply)  reply = 'n';endif ~any(strcmpi(reply,{'n','y'}))  disp(['Unsupported answer ',reply,'. Doing nothing.'])endif strcmpi(reply,'y')  dir_list = {};  file_list = textread([base_dir,'/ls-R'],'%s');  for file = file_list'    file = char(file);    if file(1) == '.'      sub_dir = file(2:end-1);      dir_list{end+1} = [base_dir,sub_dir];    else      filename = [base_dir,sub_dir,'/',file];      if ~isdir(filename)        [p,n,e] = fileparts(filename);        if strcmp(e,'mexglx')          filename = [p,n,mexext];        end        if exist(filename,'file')          delete(filename)        else          warning(['File not found: ',filename])        end      end    end  end  for dir = fliplr(dir_list)    dir = char(dir);    [status,message] = rmdir(dir);  endenddisp('IMPORTANT: After running UNINSTALL_EMD you must run the "savepath" command to save the modifications made')disp('to Matlab''s path but be careful that if you previously removed parts of the path (using e.g. the "rmpath" command)')disp('these will be permanently removed after you run "savepath"')

⌨️ 快捷键说明

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