Info
이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.
HELP how to solve this error code : Error using .* Matrix dimensions must agree.
조회 수: 2 (최근 30일)
이전 댓글 표시
Hi, Well in fact I have a problem with my code which is generating the error below, could you help me to solve this please, here's a part of the code :
[val_maxfft(icurv,:),loc_maxfft(icurv,:)]=(max(Y0fft(:,1,icurv)));
freqY0=(1:Ndf)*df;
PhiY0_decal=-2*pi*(freqY0')*(loc_maxfft(icurv,:)-1);
PhaseY0_shift=complex(cos(PhiY0_decal),sin(PhiY0_decal));
Arg_Phase_shift=atan(imag(PhaseY0_shift)./real(PhaseY0_shift))
Y0fft=Y0fft.*PhaseY0_shift;
Y0_BP=Y0fft(loc_maxfft(icurv,:):loc_maxfft(icurv,:)+Ndfmax-1,1,1);
The error is generated for this line: Y0fft=Y0fft.*PhaseY0_shift;
And thank you for your help
댓글 수: 0
답변 (1개)
Rick Rosson
2014년 8월 21일
편집: Rick Rosson
2014년 8월 21일
What are the results of:
size(Y0fft)
size(PhaseY0_shift)
They need to be the same size and shape to use the .* operator.
이 질문은 마감되었습니다.
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!