Why does test(2)=1 create a 1x2 array rather than a 2x1 array?
1 次查看(过去 30 天)
显示 更早的评论
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?
0 个评论
回答(1 个)
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.
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Matrices and Arrays 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!