remrelpath.m

来自「有关kalman滤波及其一些变形滤波算法」· M 代码 · 共 43 行

M
43
字号
% REMRELPATH  Remove a relative path (which gets expanded into a absolute path)%             from MATLABPATH.%%     remrelpath(path_string)%%     INPUT%            path_string        : string containing relative path%%%     Example : remrelpath('../foo');%%     This will first expand '../foo' to an absolute path and then remove it from%     the current MATLABPATH%%   See also%   ADDRELPATH%
%   Copyright (c) Oregon Health & Science University (2006)
%
%   This file is part of the ReBEL Toolkit. The ReBEL Toolkit is available free for
%   academic use only (see included license file) and can be obtained from
%   http://choosh.csee.ogi.edu/rebel/.  Businesses wishing to obtain a copy of the
%   software should contact rebel@csee.ogi.edu for commercial licensing information.
%%   See LICENSE (which should be part of the main toolkit distribution) for more%   detail.%=============================================================================================function remrelpath(path_string)if strncmp(computer,'PC',2),   path_string = strrep(path_string,'/','\'); % Convert '/' to '\'else   path_string = strrep(path_string,'\','/'); % Convert '\' to '/'endcurrent_dir = pwd;cd(path_string);absolute_path = pwd;cd(current_dir);rmpath(absolute_path);

⌨️ 快捷键说明

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