Filter löschen
Filter löschen

vectorization: matrix array multiplication element wise one by one

2 Ansichten (letzte 30 Tage)
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 ....];

Akzeptierte Antwort

Walter Roberson
Walter Roberson am 9 Jul. 2017
Bearbeitet: Walter Roberson am 9 Jul. 2017
array2 = kron(array, R)

Weitere Antworten (0)

Kategorien

Mehr zu Multidimensional Arrays finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by