Code covered by the BSD License  

Highlights from
click_fit

4.33333

4.3 | 3 ratings Rate this file 6 Downloads (last 30 days) File Size: 1.76 KB File ID: #9311
image thumbnail

click_fit

by Nassim Khaled

 

08 Dec 2005 (Updated 09 Dec 2005)

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

| 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

Contact us at files@mathworks.com