Does matlab have matrix broadasting

1 回表示 (過去 30 日間)
cyril
cyril 2014 年 4 月 15 日
コメント済み: Walter Roberson 2014 年 4 月 15 日
This
x=[1:3]'; x.^(1:5)
would work on Octave thanks to Broadcasting
sadly not in matlab

採用された回答

Walter Roberson
Walter Roberson 2014 年 4 月 15 日
No, MATLAB does not have that. See bsxfun() and repmat()
  2 件のコメント
cyril
cyril 2014 年 4 月 15 日
thanks, is it really possible with bsxfun and repmat? I've not found how
Walter Roberson
Walter Roberson 2014 年 4 月 15 日
bsxfun(@power,x,1:5)

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

その他の回答 (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