I have to multiply 3*3 and 3*1 array. i am getting error using "curvatureqi=bsxfun(@times,q,curvature);" this is giving 3*3 matrix but i need 3*1 matrix in every layer or loop. please help
조회 수: 1 (최근 30일)
이전 댓글 표시
q = [3*3] Matrix where q = q(:,:,1:20)
curvature = [3*1] Matrix where curvature is single matrix.
채택된 답변
Walter Roberson
2015년 10월 15일
편집: Walter Roberson
2015년 10월 16일
T = arrayfun(@(pane) q(:,:,pane) * curvature, 1 : size(q,3), 'Uniform', 0);
curvatureqi = cell2mat( reshape(T,1,1,size(q,3)) );
댓글 수: 5
Walter Roberson
2015년 10월 16일
You are getting stuck by the invisible character that I have since corrected. You can copy and paste the code as it is now. Or you can type in the statement by hand instead of copying and pasting it.
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Logical에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!