A=magic(3);
B=A(:)
disp(B)
why does it show the matrix entires in a column vector? what does (:) mean?

 Respuesta aceptada

Guillaume
Guillaume el 30 de Jun. de 2015
This the colon operator. Explanation available with
doc 'colon (:)'

Más respuestas (0)

Categorías

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

Etiquetas

Preguntada:

el 30 de Jun. de 2015

Respondida:

el 30 de Jun. de 2015

Community Treasure Hunt

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

Start Hunting!

Translated by