I have a 3×3 matrix and I have to multiply it to a 3×1 cell having matrices of dimensions 600×600. Kindly help me in doing so.

조회 수: 1 (최근 30일)
pic1.png

채택된 답변

Walter Roberson
Walter Roberson 2019년 11월 13일
Guessing at what you want:
nB = [reshape(B{1},1,[]); reshape(B{2},1,[]); reshape(B{3},1,[]);
CB = C * nB; %this will give 3 x 3600
out{1} = reshape(CB(1,:),600,600);
out{2} = reshape(CB(2,:),600,600);
out{3} = reshape(CB(3,:)600,600);
  댓글 수: 2
Aqiba Hafeez
Aqiba Hafeez 2019년 11월 13일
Unfortunately it is not working.. giving a message like this; " CB = c3inv * nB; %this will give 3 x 3600
Error: The expression to the left of the equals sign is not a valid target for an assignment."

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Matrices and Arrays에 대해 자세히 알아보기

제품


릴리스

R2014a

Community Treasure Hunt

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

Start Hunting!

Translated by