フィルターのクリア

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