3D Plot- How to do it
5 次查看(过去 30 天)
显示 更早的评论
I want to plot a 3D surface with the following:
y=4x-1/2
z=(14x-1)(113*x-31)/100
I know that these are each in xOy and zOy .
0 个评论
回答(1 个)
Azzi Abdelmalek
2013-6-16
编辑:Azzi Abdelmalek
2013-6-16
x=-100:0.1:100;
y=4*x-1/2;
z=(14*x-1).*(113*x-31)/100;
plot3(x,y,z)
%or
x=-100:0.1:100;
y=4*x-1/2;
[x1,y1]=meshgrid(x,y);
z1=(14*x1-1).*(113*x1-31)/100;
mesh(x1,y1,z1)
2 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Surface and Mesh Plots 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!