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

 Risposta accettata

Guillaume
Guillaume il 30 Giu 2015
This the colon operator. Explanation available with
doc 'colon (:)'

Più risposte (0)

Categorie

Tag

Community Treasure Hunt

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

Start Hunting!

Translated by