Info

Diese Frage ist geschlossen. Öffnen Sie sie erneut, um sie zu bearbeiten oder zu beantworten.

getting the error please help

1 Ansicht (letzte 30 Tage)
abed
abed am 7 Feb. 2014
Geschlossen: MATLAB Answer Bot am 20 Aug. 2021
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));%%

Antworten (1)

Azzi Abdelmalek
Azzi Abdelmalek am 7 Feb. 2014
Bearbeitet: Azzi Abdelmalek am 7 Feb. 2014
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 Kommentare
abed
abed am 7 Feb. 2014
thank you very much it worked when you told me wow but why??
Azzi Abdelmalek
Azzi Abdelmalek am 7 Feb. 2014
for the same reason you wrote .* instead of *

Diese Frage ist geschlossen.

Community Treasure Hunt

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

Start Hunting!

Translated by