How to do a matrix like this??
1 回表示 (過去 30 日間)
古いコメントを表示
how to do a matrix like this in a loop,[1 2 3 ... 10,
1 4 9 ... 100
1 8 27... 100]
0 件のコメント
採用された回答
Bruno Luong
2019 年 9 月 16 日
編集済み: Bruno Luong
2019 年 9 月 16 日
(1:10).^((1:3)')
or on older MATLAB
bsxfun(@power,1:10,(1:3)')
その他の回答 (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!