what does the following syntax

1 Ansicht (letzte 30 Tage)
Harel Harel Shattenstein
Harel Harel Shattenstein am 30 Jun. 2015
Beantwortet: Guillaume am 30 Jun. 2015
A=magic(3);
B=A(:)
disp(B)
why does it show the matrix entires in a column vector? what does (:) mean?

Akzeptierte Antwort

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

Weitere Antworten (0)

Kategorien

Mehr zu MATLAB Compiler finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by