How to normalize surf plots?
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Athira T Das
am 2 Jun. 2023
Beantwortet: Sam Chak
am 2 Jun. 2023
syms x y
x0 = -.5:0.001:.5;
y0 = x0;w0=0.05;
[X0,Y0] = meshgrid(x0,y0);
omegax=2
omegay=omegax;
f = @(x0,y0)sinh((omegax*x0+omegay*y0)/w0) ;
surf (X0,Y0,abs(f(X0,Y0)) )
shading interp
0 Kommentare
Akzeptierte Antwort
Sam Chak
am 2 Jun. 2023
Are you looking for a plot with normalized output?
syms x y
x0 = -.5:0.001:.5;
y0 = x0;
w0 = 0.05;
[X0,Y0] = meshgrid(x0,y0);
omegax = 2;
omegay = omegax;
scale = 1/(sinh((omegax*0.5 + omegay*0.5)/w0));
f = @(x0, y0) scale*sinh((omegax*x0 + omegay*y0)/w0);
surf (X0,Y0,abs(f(X0,Y0)) )
shading interp
0 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Surface and Mesh 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!