4.33333

4.3 | 3 ratings Rate this file 7 downloads (last 30 days) File Size: 1.76 KB File ID: #9311

click_fit

by Nassim Khaled

 

08 Dec 2005 (Updated 09 Dec 2005)

Code covered by the BSD License  

You can now choose some arbitrary points by using the mouse, and fit a curve on the top of your ...

Download Now | Watch this File

File Information
Description

You can now choose some arbitrary points by using the mouse, and fit a curve on the top of your chosen curve. It is simple and fun, and if you to use a different type of fitting technique, MATLAB has an excellent toolbox for this purpose.

Acknowledgements
This submission has inspired the following:
clickfit_OH for curve fitting by eye/hand
Required Products Curve Fitting Toolbox
MATLAB release MATLAB 7 (R14)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (3)
13 Dec 2005 Fahad Al Mahmood

Cute function ... it uses simple commands but does a nice job :)

16 Dec 2005 Eric Shain

As implemented, the function does not require the Curve Fitting Toolbox. The "required products" field should be corrected. I also think a couple of improvements could be made. First, the function should return the x and y coordinates of the clicked points. Second, you might consider plotting the fitted curve after sorting the x coordinates. Otherwise the line connecting the points can jump around if the clicked points don't have a monotonically increasing x coordinate.

29 Dec 2006 G G

Can be much better but it does what it says

Please login to add a comment or rating.
Tag Activity for this File
Tag Applied By Date/Time
fit Nassim Khaled 22 Oct 2008 08:09:34
click Nassim Khaled 22 Oct 2008 08:09:34
curve Nassim Khaled 22 Oct 2008 08:09:34
mouse Nassim Khaled 22 Oct 2008 08:09:34
points Nassim Khaled 22 Oct 2008 08:09:34
fun Nassim Khaled 22 Oct 2008 08:09:34
 

MATLAB Central Terms of Use

NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content. Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available via MATLAB Central. Read the complete Terms prior to use.

Contact us at files@mathworks.com