Help with MESH command

15 visualizaciones (últimos 30 días)
Janez Novak
Janez Novak el 16 de Nov. de 2015
Comentada: Janez Novak el 17 de Nov. de 2015
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

Respuesta aceptada

Mike Garrity
Mike Garrity el 16 de Nov. de 2015
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)
  1 comentario
Janez Novak
Janez Novak el 17 de Nov. de 2015
yes this is exactly what i mean thanks a lot

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Surface and Mesh Plots en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by