Trouble plotting a 3D meshgrid
6 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Olivia Rose
am 14 Apr. 2022
Bearbeitet: Olivia Rose
am 14 Apr. 2022
I need to plot a 3D surface plot using a meshgrid, but it keeps saying not enough input arguements?
x=[-4:1:4]; y=[-3:1:3];
z=sqrt((x.^2/4)+2*sin.^2*(0.7*y));
mesh(x,y,z)
0 Kommentare
Akzeptierte Antwort
Dyuman Joshi
am 14 Apr. 2022
[x,y]=meshgrid(-4:0.1:4,-3:0.1:3); %Making the difference smaller to get a smoother mesh
z=sqrt((x.^2/4)+2*sin(0.7*y).^2);
mesh(x,y,z)
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!