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.

concatpath(varargin)
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  

Contact us