MATLAB Answers

0

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

Asked by Laila Kazemi on 16 Oct 2013
Latest activity Commented on by Adam Filion on 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 Comments

Sign in to comment.

1 Answer

Answer by Adam Filion on 16 Oct 2013
Edited by Adam Filion on 16 Oct 2013

Use the sphere command.
There's also the related sph2cart for converting azimuth, elevation and radius to x,y,z.

  2 Comments

the sphere command does not cut the sphere to the dimensions I want
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 = rad2deg(az);
az(2,:)

Sign in to comment.