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.
* 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.
Oscar Hartogensis (2022). clickfit_OH for curve fitting by eye/hand (https://www.mathworks.com/matlabcentral/fileexchange/26506-clickfit_oh-for-curve-fitting-by-eye-hand), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform CompatibilityWindows macOS Linux
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!