필터 지우기
필터 지우기

Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

getting the error please help

조회 수: 2 (최근 30일)
abed
abed 2014년 2월 7일
마감: MATLAB Answer Bot 2021년 8월 20일
b4=0.1:0.001:1;
B=(20.*abs(b4))/3;
F1=(6/abs(b4)).*(sqrt(10^(-2)+B)+10^(-1));
F2=(6/abs(b4)).*(sqrt(10^(-4)+B)+10^(-2));
figure
plot(b4,F1,b4,F2)
xlabel('phase mismatch')
ylabel('GAIN FWM')
%%% ??? Error using ==> mldivide Matrix dimensions must agree.
Error in ==> UntitledFWM at 12 F1=(6/abs(b4)).*(sqrt(10^(-2)+B)+10^(-1));%%

답변 (1개)

Azzi Abdelmalek
Azzi Abdelmalek 2014년 2월 7일
편집: Azzi Abdelmalek 2014년 2월 7일
Don't forget to use ./ instead of /
b4=0.1:0.001:1;
B=(20.*abs(b4))/3;
F1=(6./abs(b4)).*(sqrt(10^(-2)+B)+10^(-1));
F2=(6./abs(b4)).*(sqrt(10^(-4)+B)+10^(-2));
figure
plot(b4,F1,b4,F2)
xlabel('phase mismatch')
ylabel('GAIN FWM')
  댓글 수: 2
abed
abed 2014년 2월 7일
thank you very much it worked when you told me wow but why??
Azzi Abdelmalek
Azzi Abdelmalek 2014년 2월 7일
for the same reason you wrote .* instead of *

이 질문은 마감되었습니다.

Community Treasure Hunt

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

Start Hunting!

Translated by