フィルターのクリア

vectorization: matrix array multiplication element wise one by one

2 ビュー (過去 30 日間)
K.E.
K.E. 2017 年 7 月 9 日
編集済み: Walter Roberson 2017 年 7 月 9 日
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 ....];

採用された回答

Walter Roberson
Walter Roberson 2017 年 7 月 9 日
編集済み: Walter Roberson 2017 年 7 月 9 日
array2 = kron(array, R)

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeMultidimensional Arrays についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by