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 Exchange에서 Creating and Concatenating Matrices에 대해 자세히 알아보기

태그

질문:

2015년 6월 30일

답변:

2015년 6월 30일

Community Treasure Hunt

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

Start Hunting!

Translated by