sketch the graph of the function: f(x,y)= 1+2x^2+2y^2
31 次查看(过去 30 天)
显示 更早的评论
I'm not sure how to plot above equation. Can anyone help me?
0 个评论
回答(2 个)
Carlos Guerrero García
2022-12-10
The usage of polar coordinates must be useful:
[rho,theta]=meshgrid(0:0.1:2,0:pi/60:2*pi);
x=rho.*cos(theta);
y=rho.*sin(theta);
z=1+2*x.^2+2*y.^2;
surf(x,y,z);
shading interp;
axis equal % for a nice view
0 个评论
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!