How to do a matrix like this??

1 visualizzazione (ultimi 30 giorni)
fafa fafa
fafa fafa il 16 Set 2019
Commentato: fafa fafa il 16 Set 2019
how to do a matrix like this in a loop,[1 2 3 ... 10,
1 4 9 ... 100
1 8 27... 100]

Risposta accettata

Bruno Luong
Bruno Luong il 16 Set 2019
Modificato: Bruno Luong il 16 Set 2019
(1:10).^((1:3)')
or on older MATLAB
bsxfun(@power,1:10,(1:3)')

Più risposte (0)

Tag

Prodotti

Community Treasure Hunt

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

Start Hunting!

Translated by