labindex - Index of this lab

Syntax

id = labindex

Description

id = labindex returns the index of the lab currently executing the function. labindex is assigned to each lab when a job begins execution, and applies only for the duration of that job. The value of labindex spans from 1 to n, where n is the number of labs running the current job, defined by numlabs.

See Also

numlabs

  


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