Documentation about multi-line array (matrix) definition?
51 ビュー (過去 30 日間)
古いコメントを表示
I found that I can use multi-line matrix literals. That is,
A = [1 2; 3 4; 5 6] % This is the common form we use. In a single line.
is the same as
A = [1 2
3 4
5 6] % Using multiple lines
This also applies to cell arrays.
However, I cannot find any documents about this.
Matrix tutorial https://www.mathworks.com/help/matlab/learn_matlab/matrices-and-arrays.html does not say about ths multi-line array creation.
If I try to find something about multi-line, only https://www.mathworks.com/help/matlab/matlab_prog/continue-long-statements-on-multiple-lines.html shows up.
Is there any documentation about this? Is this usable to all previous versions?
0 件のコメント
採用された回答
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Matrix Indexing についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!