generateemptyfile.m
来自「Multicore - Parallel Processing on Multi」· M 代码 · 共 25 行
M
25 行
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
function success = generateemptyfile(fileName)
%GENERATEEMPTYFILE Generate empty file.
% GENERATEEMPTYFILE(FILE) generates an empty file with the given name.
%
% Markus Buehren
% Last modified 08.01.2009
%
% See also FOPEN.
try
[fid, message] = fopen(fileName, 'w');
catch
fid = -1;
% do nothing
end
if fid == -1
disp(message);
success = 0;
else
fclose(fid);
success = 1;
end
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?