Documentation Center

  • Trial Software
  • Product Updates


Number of models in model array




N = nmodels(sysarray) returns the number of models in an array of dynamic system models or static models.


expand all

Number of Models in Array

Create a 2-by-3-by-5 array of state-space models and confirm the number of models in the array.

sysarr = rss(2,2,2,2,3,4);
N = nmodels(sysarr)
N =


Input Arguments

expand all

sysarray — Input model arraymodel array

Input model array, specified as an array of input-output models such as numeric LTI models, generalized models, or identified LTI models.

Output Arguments

expand all

N — Number of models in arraypositive integer

Number of models in the input model array, returned as a positive integer.

See Also


Was this topic helpful?