
Help with MESH command
14 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Janez Novak
le 16 Nov 2015
Commenté : Janez Novak
le 17 Nov 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
0 commentaires
Réponse acceptée
Mike Garrity
le 16 Nov 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)

Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Surface and Mesh Plots dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!