How can i multiply cell arrays?
조회 수: 229 (최근 30일)
이전 댓글 표시
Hello ,
i want to multiply an array H which is 2x2 cell array (each cell contains a 1x500 array) with an array X which is 2x1 array (also each cells contains 1x500 array) .When i try to multiply these arrays like this H.*X i get the following error: Undefinedoperator '.*' for input arguments of type 'cell'. How can i multiply these cell arrays?
Thank you.
댓글 수: 0
채택된 답변
추가 답변 (1개)
choonghyun lee
2020년 12월 7일
편집: Stephen23
2020년 12월 7일
M = cellfun(@(x,y) x.*y, H,X,'UniformOutput',false)
참고 항목
카테고리
Help Center 및 File Exchange에서 Creating and Concatenating Matrices에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!