Using the surf and meshgrid command
Ältere Kommentare anzeigen
i am trying to plot a function using the surf and meshgrid commands
use the meshgrid and surf commands to plot y = sin(x cos(z)))
this is the code i have so far im not sure how to continue using the surf command and what is wrong with my current code
x = linspace(-1,1);
y = linspace(-1,1);
[x,y] = meshgrid(x,y);
y = sin*(x cos(z))
Akzeptierte Antwort
Weitere Antworten (1)
Use fimplicit3 instead
fimplicit3(@(x,y,z) y - sin(x.* cos(z)) ,[-1,1] )
1 Kommentar
lateef
am 26 Mär. 2023
Kategorien
Mehr zu Surface and Mesh Plots finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!


