Index exceeds the number of array elements (1). Error coming in the code below
Show older comments
Hi,
I am using one of the matlab function called CircleFitByTaubin but I am stuck on one of the line as shown in the error below and not sure how to correct this? If anyone can help here? I have attached the code, function and data here.
Error:
Index exceeds the number of array elements (1).
Error in CircleFitByTaubin (line 25)
Yi = XY(i,2) - centroid(2); % centering data
Error in circlefitting (line 9)
Par = CircleFitByTaubin(P);
4 Comments
Mathieu NOE
on 22 Oct 2020
ok
can you share your main code ?
muhammad choudhry
on 22 Oct 2020
per isakson
on 23 Oct 2020
But you have not told us how to use these three files to reproduce the error, which you have reported!
muhammad choudhry
on 23 Oct 2020
Accepted Answer
More Answers (0)
Categories
Find more on Get Started with Curve Fitting Toolbox in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!