Please enable JavaScript to view this site.

Knowledge Base

Returns the size of a matrix.

 

Supported Product: FDTD, MODE, DEVICE, INTERCONNECT

 

Syntax

Description

y = size(x);

y is a matrix which shows the dimensions of x.

y = size(x,n);

n is an optional parameter to get the size of the matrix in a specific dimension

 

Example

Check the dimensions of a matrix.

x=matrix(2,3,3);

?y=size(x);

result: 

2 3 3 

 

?size(x,2);

result: 

3  

 

See Also

Functions, length, flip, transpose

Copyright Lumerical Inc. | Privacy | Site Map