User`s guide

11 Functions — Alphabetical List
11-58
createTask
Create new task in job
Syntax
t = createTask(j, F, N, {inputargs})
t = createTask(j, F, N, {C1,...,Cm})
t = createTask(..., 'p1',v1,'p2',v2,...)
t = createTask(...,'Profile', 'ProfileName',...)
Arguments
t Task object or vector of task objects.
j The job that the task object is created in.
F A handle to the function that is called when the task is
evaluated, or an array of function handles.
N The number of output arguments to be returned from
execution of the task function. This is a double or array of
doubles.
{inputargs} A row cell array specifying the input arguments to be
passed to the function F. Each element in the cell array
will be passed as a separate input argument. If this is
a cell array of cell arrays, a task is created for each cell
array.
{C1,...,Cm} Cell array of cell arrays defining input arguments to each
of m tasks.
p1, p2 Task object properties configured at object creation.
v1, v2 Initial values for corresponding task object properties.
Description
t = createTask(j, F, N, {inputargs}) creates a new task object in job j, and
returns a reference, t, to the added task object. This task evaluates the function specified