Extruding a 2D plot to 3D
显示 更早的评论
Hello, i want to make the code extrude this curve over the range 0 to 10 units into the z-axis and i want the plot to show it in 3D
i=1;
for k=-5:0.1:5
y(i)=k^2;
x(i)=k;
i=i+1;
end
plot(x,y)

采纳的回答
更多回答(1 个)
Tala
2022-4-12
0 个投票
Take a look at this
https://www.mathworks.com/matlabcentral/answers/82917-extend-line-plot-to-a-surface
类别
在 帮助中心 和 File Exchange 中查找有关 Mathematics 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
