Draw 3D object.write code in 2016a version. Help me,thanks!

2 次查看(过去 30 天)
z=1-x^2 ,z=0,y=0,y=3

采纳的回答

KSSV
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

更多回答(1 个)

Carlos Guerrero García

类别

Help CenterFile Exchange 中查找有关 Creating and Concatenating Matrices 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by