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

 Réponse acceptée

Bruno Luong
Bruno Luong le 16 Sep 2019
Modifié(e) : Bruno Luong le 16 Sep 2019

0 votes

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

Plus de réponses (0)

Produits

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by