Does matlab have matrix broadasting

1 vue (au cours des 30 derniers jours)
cyril
cyril le 15 Avr 2014
Commenté : Walter Roberson le 15 Avr 2014
This
x=[1:3]'; x.^(1:5)
would work on Octave thanks to Broadcasting
sadly not in matlab

Réponse acceptée

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

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Matrix Indexing dans Help Center et File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by