Why does test(2)=1 create a 1x2 array rather than a 2x1 array?

조회 수: 2 (최근 30일)
Sören
Sören 2015년 11월 18일
답변: Walter Roberson 2016년 3월 12일
Why does
test(2)=1
create a 1x2 array rather than a 2x1 array, when test has not been defined before? Is there any reasoning behind it?

답변 (1개)

Walter Roberson
Walter Roberson 2016년 3월 12일
History.
So that when people do quick calculations, the results will show up across the page rather than using up a lot of vertical lines each with small amounts of output.

카테고리

Help CenterFile Exchange에서 Matrices and Arrays에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by