Meaning of Function "size"

I want to know better the use of the function size. And if i have a matrix A of the type 4 x 2 what can mean if i write size(A,2)? Thanks a lot Bye Vito

Respuestas (1)

the cyclist
the cyclist el 19 de Jul. de 2012
Editada: the cyclist el 19 de Jul. de 2012

1 voto

If A is an M x N matrix, then
size(A,2)
gives the result N, because that is the size of the 2nd dimension of the matrix.

Categorías

Más información sobre Creating and Concatenating Matrices en Centro de ayuda y File Exchange.

Etiquetas

Preguntada:

el 19 de Jul. de 2012

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by