how to do a matrix like this in a loop,[1 2 3 ... 10,
1 4 9 ... 100
1 8 27... 100]

 採用された回答

Bruno Luong
Bruno Luong 2019 年 9 月 16 日
編集済み: Bruno Luong 2019 年 9 月 16 日

0 投票

(1:10).^((1:3)')
or on older MATLAB
bsxfun(@power,1:10,(1:3)')

その他の回答 (0 件)

製品

タグ

質問済み:

2019 年 9 月 16 日

コメント済み:

2019 年 9 月 16 日

Community Treasure Hunt

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

Start Hunting!

Translated by