How can I plot a sphere that is segmented into az-el angles?
5 次查看(过去 30 天)
显示 更早的评论
I want to plot a sphere with r=1 that is divided into element of 10 degree in azimuth and elevation angle.
0 个评论
回答(1 个)
Adam Filion
2013-10-16
编辑:Adam Filion
2013-10-16
2 个评论
Adam Filion
2013-10-16
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,:)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Surface and Mesh Plots 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!