setting up matlab multicore computing

I'm trying to use something like this in matlab

parfor i = 1 : 100
    disp( sprintf('process %d\n', i) ); 
end

how do I setup the number of cores I want to use (possibly inside the script)? At this moment I always see the same (sorted) sequence.

Thank you

Answers


Use

matlabpool open X

where X is the number of cores you'd like to run your computation on.


Need Your Help

C# Reflection : Class Derivation in external dll

c# reflection assemblies

I Have a main dll Main.dll with 2 files MyBaseClass.cs and MyScript.cs both with namespace MainProject:

T-SQL to trim a datetime to the nearest date?

sql tsql datetime date-arithmetic

Duplicate of What's the BEST way to remove the time portion of a datetime value (SQL Server)?