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

 採用された回答

Guillaume
Guillaume 2015 年 6 月 30 日

0 投票

This the colon operator. Explanation available with
doc 'colon (:)'

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeCreating and Concatenating Matrices についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by