Using ‘surf’ plot the surface f (x, y) =x(x^2+y^2).

clear
clc
x=-1:.05:1;
y=-1:.05:1;
[x,y]=meshgrid(x,y);
z=x.*(x^2+y^2)
surf(x,y,z);
colormap spring
shading interp

Richiesto:

il 17 Apr 2022

Risposto:

il 17 Apr 2022

Community Treasure Hunt

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

Start Hunting!

Translated by