vectorization: matrix array multiplication element wise one by one
2 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
K.E.
il 9 Lug 2017
Modificato: Walter Roberson
il 9 Lug 2017
Vectorization without loop:
I have a matrix:
R = [0 -1;1 0];
array = [1 2 3 3646 68 534 342 1 2 3];
how can I obtain another array
array2 = [1*R 2*R 3*R 3646*R 68*R ....];
0 Commenti
Risposta accettata
Walter Roberson
il 9 Lug 2017
Modificato: Walter Roberson
il 9 Lug 2017
array2 = kron(array, R)
0 Commenti
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Multidimensional Arrays in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!