?? concatpath.m
字號:
function str = concatpath(varargin)
%CONCATPATH Concatenate file parts with correct file separator.
% STR = CONCATPATH(STR1, STR2, ...) concatenates file/path parts with the
% system file separator.
%
% Example:
% drive = 'C:';
% fileName = 'test.txt';
% fullFileName = concatpath(drive, 'My documents', fileName);
%
% Markus Buehren
% Last modified 05.04.2009
%
% See also FULLFILE, FILESEP, CHOMPSEP.
str = '';
for n=1:nargin
curStr = varargin{n};
str = fullfile(str, chompsep(curStr));
end
if ispc
str = strrep(str, '/', '\');
else
str = strrep(str, '\', '/');
end
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -