?? chompsep.m
字號:
function str = chompsep(str)
%CHOMPSEP Remove file separator at end of string.
% STR = CHOMPSEP(STR) returns the string STR with the file separator at
% the end of the string removed (if existing). Further, all file
% separators are replaced by "/".
%
% Example:
% str1 = chompseq('/usr/local/');
% str2 = chompseq('C:\Program Files\');
%
% Markus Buehren
% Last modified 03.02.2008
%
% See also CONCATPATH.
str = strrep(str, '\', '/');
if ~isempty(str) && str(end) == '/'
str(end) = '';
end
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -