matrix multiplication A[5*1] and B[250*1] orders

1 回表示 (過去 30 日間)
Chetan Fadnis
Chetan Fadnis 2022 年 7 月 9 日
回答済み: Chetan Fadnis 2022 年 7 月 9 日
I have a matrix A of order [5*1] and matrix B of order [250*1].
I want to multiply first element of matrix A with first 50 elements of Matrix B, second element of matrix A with next 50 elements of matrix B, and so on...
How to proceed, Kindly guide. Thank you.

採用された回答

Chetan Fadnis
Chetan Fadnis 2022 年 7 月 9 日
C=repelem(A,50);
T=C.*B;

その他の回答 (0 件)

カテゴリ

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

Community Treasure Hunt

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

Start Hunting!

Translated by