| Products & Services | Solutions | Academia | Support | User Community | Company |
| Download Product Updates | | | Get Pricing | | | Trial Software |
| Documentation → System Identification Toolbox |
| Contents | Index |
| Learn more about System Identification Toolbox |
d = size(m) [ny,nu,Npar,Nx] = size(model) [N, ny, nu, Nexp] = size(data) ny = size(data,2) ny = size(data,'ny') size(model) size(idfrd_object)
size describes the dimensions of iddata, idmodel, idnlmodel, and idfrd objects.
For iddata objects, the sizes returned are, in this order,
N = the length of the data record. For multiple-experiment data, N is a row vector with as many entries as there are experiments.
ny = the number of output channels.
ny = the number of input channels.
Ne = the number of experiments.
To access a specific size output, use syntax similar to the following: size(data,k) for the k size(data,'N'),size(data,'ny').
When called with one output argument, d = size(data) returns
d = [N ny nu] if the number of experiments is 1.
d = [sum(N) ny nu Ne] if the number of experiments is Ne > 1.
For idmodel objects the sizes returned are, in this order,
ny = the number of output channels.
nu = the number of input channels.
Npar = the length of the ParameterVector (number of estimated parameters).
Nx = the number of states for idss and idgrey models.
To access a specific size output, use syntax similar to the following: size(mod,2), size(mod,'Npar').
When size is called with one output argument, d = size(mod), d is given by
[ny nu Npar]
For idfrd models, the sizes returned are, in this order,
ny = the number of output channels.
nu = the number of input channels.
Nf = the number of frequencies.
Ns = the number of spectrum channels.
To access a specific size output, use syntax similar to the following: size(mod,2) or size(mod,'Nf').
When size is called with one output argument, d = size(fre), d is given by
[ny nu Nf Ns]
When size is called with no output arguments, in any of these cases, the information is displayed in the MATLAB Command Window.
For idmodel objects the sizes returned are, in this order,
ny = the number of output channels.
nu = the number of input channels.
To access a specific size output, use one of the following:
NY = SIZE(NLSYS,1) NU = SIZE(NLSYS,2) NY = SIZE(NLSYS,'Ny') NU = SIZE(NLSYS,'Nu')
When called with only one output argument, N = SIZE(NLSYS) returns the vector N = [NY NU].
When called with no output argument, the information is displayed in the MATLAB Command Window.
For idnlgrey objects the sizes returned are, in this order,
Ny = the number of output channels.
Nu = the number of input channels.
Nx = the number of states.
Np = the number of parameters.
Npo = the number of parameter variables (number of estimated parameters).
Npf = the number of fixed parameters.
Ne = the number of experiments associated with the states.
Ny, Nu, Nx, Np,Npo, Npf and Ne are set to NaN if NLSYS is inconsistent.
To access a specific size output, use one of the following:
NY = SIZE(NLSYS, 1) NU = SIZE(NLSYS, 2) NX = SIZE(NLSYS, 3) NP = SIZE(NLSYS, 4) NPO = size(NLSYS, 5) NPF = (NLSYS, 6) NE = (NLSYS, 7) NY = SIZE(NLSYS, 'Ny') NU = SIZE(NLSYS, 'Nu')
When called with only one output argument, N = SIZE(NLSYS) returns the vector N = [NY NU NP NX NPO NPF NE].
When called with no output argument, the information is displayed in the MATLAB Command Window.
![]() | simsd | spa | ![]() |

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 |