How to do a matrix like this??

1 回表示 (過去 30 日間)
fafa fafa
fafa fafa 2019 年 9 月 16 日
コメント済み: fafa fafa 2019 年 9 月 16 日
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 日
(1:10).^((1:3)')
or on older MATLAB
bsxfun(@power,1:10,(1:3)')
  1 件のコメント
fafa fafa
fafa fafa 2019 年 9 月 16 日
thx a lot

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeMatrix Indexing についてさらに検索

タグ

製品

Community Treasure Hunt

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

Start Hunting!

Translated by