필터 지우기
필터 지우기

vectorization: matrix array multiplication element wise one by one

조회 수: 1 (최근 30일)
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 CenterFile Exchange에서 Matrices and Arrays에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by