how to make irregular 3d shape with spherical coordinates?

Hi, I have some different values of 'r' in spherical coordinates and want to plot 3d irregular surface. e.g, I have phi = [0,2pi] and theta = [0,pi/2], so for each phi and theta, I have different r value. I just want to plot the surface, with no color, and only showing the variation in r by 3d surface.

 채택된 답변

Vineeth Nair
Vineeth Nair 2018년 9월 11일

0 개 추천

Attaching a sample code. I have converted the spherical coordinates to Cartesian, keeping radius variable as a vector. Further I have used surf function for the 3d plot.

댓글 수: 4

Thanks @Vineeth Nair... It is good.. but I want actually a sphere with different radius,,, Means from some points it will be inside and from some it will be out,, like connecting point of spherical coordinates with ir-regular radius. Thanks for your solution. Highly appreciated.
I found an answer which might be close to what you are looking for. Check here .
@Vineeth Nair,, ThankYou for your efforts Vineeth. Thanks.. Hopefully this will resolve my problem.
how can i plot this map in matlab or python ?/
x=lat : utm system
y= long
z= magnetic data

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

추가 답변 (0개)

카테고리

Community Treasure Hunt

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

Start Hunting!

Translated by