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

📄 chompsep.m

📁 非常好的差分进化matlab程序
💻 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

⌨️ 快捷键说明

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