Products & Services Solutions Academia Support User Community Company

Learn more about Parallel Computing Toolbox   

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

  


Recommended Products

Includes the most popular MATLAB recorded presentations with Q&A sessions led by MATLAB experts.

 © 1984-2009- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS