File Exchange

image thumbnail

click_fit

version 1.0 (1.76 KB) by

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

4.33333
3 Ratings

5 Downloads

Updated

View License

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.

Comments and Ratings (3)

G G

Can be much better but it does what it says

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.

Fahad Al Mahmood

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

MATLAB Release
MATLAB 7 (R14)
Acknowledgements

Inspired: clickfit_OH for curve fitting by eye/hand

Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.

» Watch video