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

I want to plot a sphere with r=1 that is divided into element of 10 degree in azimuth and elevation angle.

답변 (1개)

Adam Filion
Adam Filion 2013년 10월 16일
편집: Adam Filion 2013년 10월 16일

0 개 추천

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

댓글 수: 2

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,:)

댓글을 달려면 로그인하십시오.

카테고리

제품

질문:

2013년 10월 16일

댓글:

2013년 10월 16일

Community Treasure Hunt

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

Start Hunting!

Translated by