columns

Navigation:  Language Reference > Functions > Matrix >

columns

Previous pageReturn to chapter overviewNext page

Syntax

y = columns(A);

Description

Returns the number of columns of A.

Examples

A = [1,2;3,4;5,6];

y = columns(A);

Limitations

y must be a scalar.