Write a MALTAB script file for plotting the below surfaces by coloring the surface with a coluor map , appropriately naming the axis and titling the plot. z = sin(x^2 + y^2)*(x + y)−2*x/y for (x,y) ∈ [−3,3]×[−3,3]
Show older comments
how to solve this question
1 Comment
James Tursa
on 12 Sep 2018
What have you done so far? What specific problems are you having with your code?
Answers (1)
madhan ravi
on 12 Sep 2018
Edited: madhan ravi
on 12 Sep 2018
syms x y
h=ezsurf(sin(x^2 + y^2)*(x + y)-2*x/y )
xlim([-3 3])
ylim([-3 3])
Edited after stephen's and sir Walter’s comment
3 Comments
colormap jet
Ugh. The jet colormap should definitely be avoided. That is why MATLAB changed its default:
Walter Roberson
on 12 Sep 2018
colormap without an input returns the current colormap.
ezsurf() automatically applies the current colormap (which is to say, when it generates the surf object, it does leaves the face coloring default and the default is to use a colormap)
madhan ravi
on 12 Sep 2018
Thank you for the valuable input @Sir Walter Roberson.
Categories
Find more on Color and Styling 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!