Draw 3D object.write code in 2016a version. Help me,thanks!
2 次查看(过去 30 天)
显示 更早的评论
z=1-x^2 ,z=0,y=0,y=3
0 个评论
采纳的回答
KSSV
2018-11-19
x = linspace(0,3) ;
y = linspace(0,3) ;
[X,Y] = meshgrid(x,y) ;
Z = 1-X.^2 ;
surf(X,Y,Z)
shading interp
0 个评论
更多回答(1 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Creating and Concatenating Matrices 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!