Skip to Main Content Skip to Search
Product Documentation

InputArguments - Input arguments to task object

Description

InputArguments is a 1-by-N cell array in which each element is an expected input argument to the task function. You specify the input arguments when you create a task with the createTask function.

Characteristics

Usage

Task object

Read-only

While task is running or finished

Data type

Cell array

Values

The forms and values of the input arguments are totally dependent on the task function.

Examples

Create a task requiring two input arguments, then examine the task's InputArguments property.

jm = findResource('scheduler','type','jobmanager', ...
          'name','MyJobManager','LookupURL','JobMgrHost');
j = createJob(jm);
t = createTask(j, @rand, 1, {2, 4});
get(t, 'InputArguments')
ans = 
    [2]    [4]

See Also

Functions

createTask

Properties

Function, OutputArguments

  


Free Parallel Computing Interactive Kit

See how to solve large problems with minimal effort and reduce simulation time.

Get free kit

Trials Available

Try the latest versions of parallel computing products.

Get trial software
 © 1984-2012- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS