| Parallel Computing Toolbox™ | ![]() |
job = createMatlabPoolJob()
job = createMatlabPoolJob('p1', v1, 'p2', v2, ...)
job = createMatlabPoolJob(..., 'configuration',
'ConfigurationName',...)
job | The job object. |
p1, p2 | Object properties configured at object creation. |
v1, v2 | Initial values for corresponding object properties. |
job = createMatlabPoolJob() creates a MATLAB pool job using the scheduler identified by the default parallel configuration.
job = createMatlabPoolJob('p1', v1, 'p2', v2, ...) creates a MATLAB pool job with the specified property values. For a listing of the valid properties of the created object, see the matlabpooljob object reference page (if using a job manager) or simplematlabpooljob object reference page (if using a third-party scheduler). If an invalid property name or property value is specified, the object is not created. These values will override any values in the default configuration.
job = createMatlabPoolJob(..., 'configuration', 'ConfigurationName',...) creates a MATLAB pool job using the scheduler identified by the configuration and sets the property values of the job as specified in that configuration. For details about defining and applying configurations, see Programming with User Configurations.
Construct a MATLAB pool job object.
j = createMatlabPoolJob('Name', 'testMatlabPooljob');Add the task to the job.
createTask(j, @labindex, 1, {});Set the number of workers required for parallel execution.
j.MinimumNumberOfWorkers = 5; j.MaximumNumberOfWorkers = 10;
Run the job.
submit(j)
Wait until the job is finished.
waitForState(j, 'finished');
Retrieve job results.
out = getAllOutputArguments(j);
Display the output.
celldisp(out);
Destroy the job.
destroy(j);
createParallelJob, createTask, defaultParallelConfig, submit
![]() | createJob | createParallelJob | ![]() |
| © 1984-2009- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |