Info
此问题已关闭。 请重新打开它进行编辑或回答。
Draw 3D object. code this in 2016a version.help!
1 次查看(过去 30 天)
显示 更早的评论
回答(2 个)
madhan ravi
2018-12-22
[x y] = meshgrid(-1:0.1:1); % Generate x and y data
z = 1-x.^2; % Generate z data
surf(x, y, z) % Plot the surface
hold on
[x y] = meshgrid(-1:0.1:1);
z = zeros(size(x, 1));
surf(x, y, z)
[x z] = meshgrid(-1:0.1:1);
y = zeros(size(x, 1));
surf(x, y, z)
[x z] = meshgrid(-1:0.1:1);
y = 3*ones(size(x, 1));
surf(x, y, z)
xlabel('x')
ylabel('y')
zlabel('z')
0 个评论
此问题已关闭。
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!