Create a 3-D graph
Show older comments
Given function f(x, y) = x^2 + y − sin(xy), draw 3-D graph of contour, plot3, mesh, surface on the intervals x ∈ [−2π, 2π] and y ∈ [−2π, 2π].
Answers (1)
Walter Roberson
on 20 Jun 2021
0 votes
https://www.mathworks.com/help/matlab/ref/meshc.html#mw_7ea10a14-7937-4914-8926-acba95cc084d shows an example of creating a 3D meshplot with a user-supplied function.
The other kinds of plots just involve calling different plotting functions such as surf()
Categories
Find more on Surface and Mesh Plots in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!