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]

Answers (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 Comments

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.

Sign in to comment.

Categories

Asked:

on 12 Sep 2018

Edited:

on 12 Sep 2018

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!