Does matlab have matrix broadasting

2 Ansichten (letzte 30 Tage)
cyril
cyril am 15 Apr. 2014
Kommentiert: Walter Roberson am 15 Apr. 2014
This
x=[1:3]'; x.^(1:5)
would work on Octave thanks to Broadcasting
sadly not in matlab

Akzeptierte Antwort

Walter Roberson
Walter Roberson am 15 Apr. 2014
No, MATLAB does not have that. See bsxfun() and repmat()
  2 Kommentare
cyril
cyril am 15 Apr. 2014
thanks, is it really possible with bsxfun and repmat? I've not found how
Walter Roberson
Walter Roberson am 15 Apr. 2014
bsxfun(@power,x,1:5)

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Resizing and Reshaping Matrices finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by