WriteaMALTABscriptfileforplottingthebelowsurfacesbycoloringthesurfacewithacolormap, appropriately naming the axis and titling the plot. 1. z = sin(x+y)/ x^2+y^2 for (x,y) ∈ [−2,2]×[1,3]
Show older comments
how can I solve this question
Accepted Answer
More Answers (1)
Image Analyst
on 12 Sep 2018
Homework hint: Use linspace() to create x and y.
x = linspace(.....
Then use meshgrid()
[X, Y] = meshgrid(x, y);
Then create the surface using dot slash instead of slash:
z = sin(X+Y) ./ X .^ 2 + Y .^ 2;
Then call surf().
Categories
Find more on Geodesy and Mapping 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!