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]

Réponses (1)

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 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)
Thank you for the valuable input @Sir Walter Roberson.

Connectez-vous pour commenter.

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!

Translated by