??? Error using ==> mtimes Inner matrix dimensions must agree.
Error in ==> Untitled at 516 Fobj =HM*fobj ;
how can i solve this problem

 채택된 답변

Image Analyst
Image Analyst 2017년 9월 22일

0 개 추천

For a matrix multiplication, if HM is r1 rows by c1 columns, and fobj is r2 rows and c2 columns, then c1 must equal r2. So essentially it's like r1-by-c1 * c1-by-r2. The inner dimensions are now both c1 and it will work.
On the other hand if you want element-by-element multiplication then r1 must equal r2 and c1 must equal c2. THEN you can do:
Fobj = HM .* fobj; % Use dot star instead of just star.

추가 답변 (1개)

카테고리

도움말 센터File Exchange에서 Interpolation에 대해 자세히 알아보기

질문:

2017년 9월 22일

답변:

2017년 9월 22일

Community Treasure Hunt

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

Start Hunting!

Translated by