Code covered by the BSD License  

Highlights from
clickfit_OH for curve fitting by eye/hand

5.0

5.0 | 2 ratings Rate this file 16 Downloads (last 30 days) File Size: 57.83 KB File ID: #26506
image thumbnail

clickfit_OH for curve fitting by eye/hand

by Oscar Hartogensis

 

28 Jan 2010

click a data-series on top of a (noisy) scatterplot and get a spline or polynomial regression

| Watch this File

File Information
Description

clickfit_OH.m lets you mouse-click a series of datapoints on top of a (noisy) scatterplot and returns a spline or polynomial regression through the clicked dataseries. In addition the clicked series itself is returned.
clickfit_OH.m uses an altered version of ginput.m (ginput_OH.m) that from the first click onward connects the mouse-pointer to the previous mouse click location by a line.

USES:
 * ginput_OH by Oscar Hartogensis (inlcuded in zip-file) which includes the selectable cursor pointer option from MYGINPUT by F. Moisy (../fileexchange/12770-myginput)
 * Uses (but will function without):
     --> splinefit.m by Jonas Lundgren (../fileexchange/13812-fit-a-spline-to-noisy-data)
     --> binned_plot.m by Stefan Schroedl (../fileexchange/19506-binned-scatter-plot)

see "help clickfit_OH" for more information.

Acknowledgements

The author wishes to acknowledge the following in the creation of this submission:
click_fit

MATLAB release MATLAB 7.8 (R2009a)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (2)
31 Jan 2012 Mehdi Moghaddam

That is exactly what I was after..thanks:)

08 Mar 2012 Smith Mark  
Please login to add a comment or rating.
Tag Activity for this File
Tag Applied By Date/Time
curve fitting Oscar Hartogensis 28 Jan 2010 11:53:56
spline Oscar Hartogensis 28 Jan 2010 11:53:56
regression Oscar Hartogensis 28 Jan 2010 11:53:56
ginput Oscar Hartogensis 28 Jan 2010 11:53:56
interpolation Oscar Hartogensis 28 Jan 2010 11:53:56
signal processing Oscar Hartogensis 28 Jan 2010 11:53:56
mouse Oscar Hartogensis 28 Jan 2010 11:53:56
curve fitting NN 02 Dec 2011 01:21:49

Contact us at files@mathworks.com