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

📄 tempdir2.m

📁 非常好的差分进化matlab程序
💻 M
字号:
function tempDir2 = tempdir2%TEMPDIR2  Return temporary directory.%		DIR = TEMPDIR2 returns as a temporary directory the directory%		<TEMPDIR>/<USERNAME>@<HOSTNAME>/MATLAB. This directory is user- and%		host-specific and thus better suited in networks/clusters than the%		temporary directory returned by Matlab function TEMPDIR.%%		Markus Buehren%		Last modified 20.04.2008 %%		See also TEMPDIR, GETUSERNAME, GETHOSTNAME.persistent tempDir2Persistentif isempty(tempDir2Persistent)		% build directory string	tempDir2 = tempdir;	tempDir2 = fullfile(tempDir2, [getusername '@' gethostname], 'MATLAB');		% if directory is not existing, try to create it	if ~exist(tempDir2, 'dir')		try		mkdir(tempDir2);		catch			error('Unable to create directory %s.', tempDir2);		end	end	% save string for next function call	tempDir2Persistent = tempDir2;else	% return string computed before	tempDir2 = tempDir2Persistent;end

⌨️ 快捷键说明

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