Code covered by the BSD License  

Highlights from
Multicore - Parallel processing on multiple cores

Multicore - Parallel processing on multiple cores

by

 

26 Jan 2007 (Updated )

This package provides parallel processing on multiple cores/machines.

generateemptyfile(fileName)
function success = generateemptyfile(fileName)
%GENERATEEMPTYFILE  Generate empty file.
%		GENERATEEMPTYFILE(FILE) generates an empty file with the given name.
%
%		Markus Buehren
%		Last modified 04.06.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

Contact us