Help with MESH command

15 次查看(过去 30 天)
Im trying to write a space with this equations, but i don´t know how to use mesh properly. Please for little help, im new in matlab.
r=linspace(0,1,30)
theta=linspace(0,2*pi,30)
x=r.*cos(theta)
y=r.*sin(theta)
z=r

采纳的回答

Mike Garrity
Mike Garrity 2015-11-16
Did you mean something like this?
[r,theta] = meshgrid(linspace(0,1,30),linspace(0,2*pi,30));
x = r.*cos(theta);
y = r.*sin(theta);
z = r;
mesh(x,y,z)

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Surface and Mesh Plots 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by