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

조회 수: 3 (최근 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 CenterFile Exchange에서 Logical에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by