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

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일

1 개 추천

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.

카테고리

도움말 센터File Exchange에서 Creating and Concatenating Matrices에 대해 자세히 알아보기

제품

질문:

2015년 11월 18일

답변:

2016년 3월 12일

Community Treasure Hunt

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

Start Hunting!

Translated by