How to do a matrix like this??
1 visualizzazione (ultimi 30 giorni)
Mostra commenti meno recenti
how to do a matrix like this in a loop,[1 2 3 ... 10,
1 4 9 ... 100
1 8 27... 100]
0 Commenti
Risposta accettata
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)
Vedere anche
Categorie
Scopri di più su Matrix Indexing in Help Center e File Exchange
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!