# How can I plot a sphere that is segmented into az-el angles?

4 vues (au cours des 30 derniers jours)
Laila Kazemi le 16 Oct 2013
Commenté : Adam Filion le 16 Oct 2013
I want to plot a sphere with r=1 that is divided into element of 10 degree in azimuth and elevation angle.
##### 0 commentairesAfficher -2 commentaires plus anciensMasquer -2 commentaires plus anciens

Connectez-vous pour commenter.

### Réponses (1)

Adam Filion le 16 Oct 2013
Modifié(e) : Adam Filion le 16 Oct 2013
Use the sphere command.
There's also the related sph2cart for converting azimuth, elevation and radius to x,y,z.
##### 2 commentairesAfficher AucuneMasquer Aucune
Laila Kazemi le 16 Oct 2013
the sphere command does not cut the sphere to the dimensions I want
Adam Filion le 16 Oct 2013
You can use sphere to split it into n number of equal parts. So if you want every 10 degrees, thats 360/10=36. For example:
[x,y,z] = sphere(36);
[az,el,r] = cart2sph(x,y,z);
az(2,:)

Connectez-vous pour commenter.

### 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!

Translated by