Probably a good program but it is quite impossible to understand how it should be used from the help part of the function.
1) "n: number of points given". Is this should be n=length(points_coordinates_vector)? If yes, it shouldn't be the input parameter but a code line inside the body of the function (n=length(points); for instance).
2) What is "pts"? is it the coordinates of points? what is the format of this vector?
3) What is the meaning of parameter "m"? If it always should be 1, then again why is it a input parameter not just a line (m=1;) inside the code?
4) From the description of the parameter "bnry" is absolutely unclear what it does and how it should be specified.
A good practice in writing a Matlab functions is to give at least one example how to use the function inside of the help section of the code.
I'm not really an expert in this stuff, I just needed to include such function in a code that analyzes chemical structure, so I translated the java code mentioned in the description to Matlab.
May be if you check the website of the guy who did the applet and see if you can contact him, maybe he will be interested.
Minimum Enclosing Circle
A code to find the minimum circle enclosing a set of given 2d points (Cartesian).
Can Aysal
The code is wrong! it does not work... sometimes it gives circles that do not enclose all the pts.
1
29 Jun 2005
Minimum Enclosing Circle
A code to find the minimum circle enclosing a set of given 2d points (Cartesian).
Sergei Koptenko
Probably a good program but it is quite impossible to understand how it should be used from the help part of the function.
1) "n: number of points given". Is this should be n=length(points_coordinates_vector)? If yes, it shouldn't be the input parameter but a code line inside the body of the function (n=length(points); for instance).
2) What is "pts"? is it the coordinates of points? what is the format of this vector?
3) What is the meaning of parameter "m"? If it always should be 1, then again why is it a input parameter not just a line (m=1;) inside the code?
4) From the description of the parameter "bnry" is absolutely unclear what it does and how it should be specified.
A good practice in writing a Matlab functions is to give at least one example how to use the function inside of the help section of the code.
3
27 Feb 2005
Minimum Enclosing Circle
A code to find the minimum circle enclosing a set of given 2d points (Cartesian).
yazan Ahed
Hi Xunkai, thanks!
I'm not really an expert in this stuff, I just needed to include such function in a code that analyzes chemical structure, so I translated the java code mentioned in the description to Matlab.
May be if you check the website of the guy who did the applet and see if you can contact him, maybe he will be interested.
Comment only
27 Feb 2005
Minimum Enclosing Circle
A code to find the minimum circle enclosing a set of given 2d points (Cartesian).
xunkai wei
great
Do you have interest in developing enclosing ball algorithm for object covering ?
Comment only