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]
Afficher commentaires plus anciens
how to solve this question
1 commentaire
James Tursa
le 12 Sep 2018
What have you done so far? What specific problems are you having with your code?
Réponses (1)
madhan ravi
le 12 Sep 2018
Modifié(e) : madhan ravi
le 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 commentaires
colormap jet
Ugh. The jet colormap should definitely be avoided. That is why MATLAB changed its default:
Walter Roberson
le 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
le 12 Sep 2018
Thank you for the valuable input @Sir Walter Roberson.
Catégories
En savoir plus sur Color and Styling dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!