How to draw contour plot of given function?

2 Ansichten (letzte 30 Tage)
Athira T Das
Athira T Das am 11 Sep. 2022
Bearbeitet: Torsten am 11 Sep. 2022
sgn=1
m=2
w0 =0.02
  3 Kommentare
Athira T Das
Athira T Das am 11 Sep. 2022
yes
Athira T Das
Athira T Das am 11 Sep. 2022
i is the imaginery unit
s=(x0,y0)
sgn(m) is a symbolic function where the value is taken to be one.

Melden Sie sich an, um zu kommentieren.

Akzeptierte Antwort

Torsten
Torsten am 11 Sep. 2022
Bearbeitet: Torsten am 11 Sep. 2022
x0 = -0.1:0.001:0.1;
y0 = -0.1:0.001:0.1;
omega = 30;
w0 = 0.02;
m = 2;
[X0,Y0] = meshgrid(x0,y0);
f = @(x0,y0)sinh(omega*(x0+y0)).*exp(-(x0.^2+y0.^2)/w0^2).*(x0+1i*y0).^m;
figure(1)
surf(X0,Y0,abs(f(X0,Y0)))
figure(2)
surf(X0,Y0,real(f(X0,Y0)))
figure(3)
surf(X0,Y0,imag(f(X0,Y0)))

Weitere Antworten (0)

Kategorien

Mehr zu Contour Plots finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by