Symbolic Math Toolbox
 Go to function:
  Search    Help Desk 
size ExamplesSee Also

Symbolic matrix dimensions.

Syntax

Description

Suppose A is an m-by-n symbolic or numeric matrix. The statement
d = size(A) returns a numeric vector with two integer components, d = [m,n].

The multiple assignment statement [m,n] = size(A) returns the two integers in two separate variables.

The statement d = size(A,n) returns the length of the dimension specified by the scalar n. For example, size(A,1) is the number of rows of A and size(A,2) is the number of columns of A.

Examples

The statements

return

See Also

length, ndims in the online MATLAB Function Reference



[ Previous | Help Desk | Next ]