Fitting two circles in 3D space separated by a distance

Hello, I have some points in 3D space which are distributed as two circles. One circle is on top of the other circle and there is a distance of separation between two circles. Radii of both the circles are similar. I need to fit the data points based on this model to find out the centers and radius of both the circles. A least sqaure type fitting will be good. I appreciate if anybody can help me with codes to do this.

4 Comments

Can you share the data points and show an image on how do you want to fit the model to the data points.
Hi Ameer,
I am attaching two representative datasets and corresponding images. Each dataset has 3 columns. So each row is one (x,y,z) point in 3d space. If you plot it, you will clearly see that there are 2 circles one on top of other. Unfortunately, I am still not able to simultaneously fit two circles and hence unable to provide you a model fit. I appreciate your help. Thanks
So, If I understand correctly, you want to fit two circles to the data in 'no tilt.txt' and two circles to data in '30 degree tilt.txt'. Right?
Right...however the tilt may vary from datset to dataset..

Sign in to comment.

Answers (0)

Categories

Community Treasure Hunt

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

Start Hunting!