Create Unit-Spaced Matrix
4 ビュー (過去 30 日間)
古いコメントを表示
Philipp Kutschmann
2022 年 9 月 17 日
回答済み: Walter Roberson
2022 年 9 月 17 日
Hi,
is there a better way to create a simple array of acsending numbers than:
foo = reshape(1:9,3,3)
Thanks
0 件のコメント
採用された回答
Walter Roberson
2022 年 9 月 17 日
No, that is the best available -- unless you want to count
foo = reshape(1:9,3,[]) %3 rows, as many colums as needed.
If you have the Computer Communications Toolbox, you can use
foo = buffer(1:9, 3) %3 rows
0 件のコメント
その他の回答 (0 件)
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!