image thumbnail

updated 8 days ago

Tidal fitting toolbox by Aslak Grinsted

fit tidal components to an observed series of sea level and use them for prediction (madden julian, toolbox, tidal model)

tidalfit_demo

parseArgs(args,ArgStruct,varargin)

tidalfit(data,varargin)

image thumbnail

updated 1 month ago

fitmethis by Francisco de Castro

FITMETHIS finds best-fitting distribution to data vector (fitting, best fit, maximum likelihood)

fitmethis(data,varargin)

plotfitdist(data,distname,par,dtype,varargin)

image thumbnail

updated 1 month ago

Markov Chain Monte Carlo sampling of posterior distribution by Aslak Grinsted

MCMC sampling of using a cascaded metropolis (metropolis, mcmc, likelihood)

[models,logP]=mcmc(m,loglikelihood,logmodelprior,stepfunc...

image thumbnail

updated 3 months ago

Constraint polynomial fit by Marc

Polynomial fitting procedure which includes constraints on the desired polynomial degree(s) (fit, polynomial fit, polynomial)

polyfitc(X, Y, N, varargin)

image thumbnail

updated 4 months ago

Dielectric characterization by microwave cavity perturbation by Nathan Orloff

A custom toolbox and example code to measure complex permittivity by microwave cavity perturbation (microwave, cavity, perturbation)

[locs pks]=peakseek(x,minpeakdist,minpeakh)

cavity_deembedsample(allw, allw_err, allQ, allQ_err)

cavity_effvolfrac(dimvaried,dims,dimserr,n)

image thumbnail

updated 4 months ago

Power Law, Exponential and Logarithmic Fit by Jonathan C. Lansey

Finds and plots the linear fit to some data points when plotted on a log scale. (curve fitting, fitting, power law)

logfit(x,y,varargin)

image thumbnail

updated 6 months ago

fitAdsorptionIsotherm by Steven Shimizu

Fits data to linear, Langmuir, Freundlich, Sips or Toth isotherms (adsorption isotherm, fitting, langmuir)

fitAdsorptionIsotherm(x,y,isotherm,ploton,...

image thumbnail

updated 8 months ago

polyfitn by John D'Errico

Polynomial modeling in 1 or n dimensions (polyfit, modeling, regression)

polyfitn_demo

polydern(p,diffvar)

polyfitn(indepvar,depvar,modelterms)

image thumbnail

updated 9 months ago

EzyFit 2.42 by Frederic Moisy

A free curve fitting toolbox for Matlab (approximation, interpolation, curve)

Discover Ezyfit: A free curve fitting toolbox for Matlab

about_ef (Ezyfit Toolbox)

axis0 (Ezyfit Toolbox)

image thumbnail

updated 10 months ago

Discrete Orthogonal Polynomial Toolbox: DOPBox Version 1.8 by Matthew Harker, Paul O'Leary,

A toolbox for discrete orthogonal polynomials and their applications to fitting, ODEs etc. (discrete orthogonal p..., polynomial approximat..., fitting)

Constrained Basis Functions in a Sturm-Liouville Problem

Demo2: Demonstrate Constrained Solution Spaces

Demo3: Constraints Placed Not at Nodes

image thumbnail

updated 1 year ago

Lognormal Helpers by Alexandra

Fitting for lognormal distributions (lognormal, fitting, lognfit)

fit_logn(X, Y, varargin)

fit_norm(X, Y, varargin)

logn2mean(mu,sigma)

image thumbnail

updated 1 year ago

Table Breakpoint Optimization by Tucker McClure

A set of tools for finding the best way to reduce the size of a table. (fitting, tables, breakpoints)

Table Optimizer

find_best_table_1d(x_0, z_0, ...

find_best_table_1de(...

image thumbnail

updated almost 2 years ago

Multiple curve fitting with common parameters using NLINFIT by Chen

Wrapper for NLINFIT which allows simultaneous fitting for multiple data sets with shared parameters. (fitting, multiple, nonlinear)

nlinmultifit(x_cell, y_cell, mdl_cell, beta0, options)

image thumbnail

updated almost 2 years ago

Nadaraya-Watson smoothing by Jan Motl

A non-parametrical regression (smoothing) tool using Gaussian kernel. (regression, smoothing, smooth)

[smoothed score h]=smoothing(ydata,varargin)

image thumbnail

updated 2 years ago

Fitting Harmonic Potential by Francois Dion

This is a simple function for Harmonic Potential Fitting (harmonic oscillator, fitting)

fit_harm(R,POT)

image thumbnail

updated 2 years ago

polyfitcon by Murat

polynomial fitting with an optional constraint (can be set as a local extrema) (polynomial fitting, fitting, fmincon)

[pfunc,pval]=polyfitcon(x,y,n,xc,yc,p0,isLocExt)

image thumbnail

updated 2 years ago

Free-knot spline approximation by Bruno Luong

Least squares approximation of 1D data using free-knots spline (fitting, bspline, free knots)

BBspline(varargin)

BSFK(x, y, k, nknots, fixknots, options)

BSFK_install

image thumbnail

updated 2 years ago

Lorentzian fit by Jered Wells

LORENTZFIT fits a single- or multi-parameter Lorentzian function to data (lorentz, lorentzian, fit)

lorentzfit(x,y,p0,bounds,nparams)

image thumbnail

updated almost 3 years ago

Weighted Nonlinear Curve Fit Script with Plotter by Jannick

This curve fitting script calculates best guess and errors using data with y-error. Plot see preview (fitting, nonlinear fitting, weighted nonlinear fi...)

paramtext(fitstr,c,cerr,nr,c2doF,Q,strings)

wnonlinfit(x,y,yerr,func,beta0,varargin)

example.m

image thumbnail

updated almost 3 years ago

fitting critically damped simple harmonic oscillator by Stephan Koehler

Four-parameter fit to the equation A*(1 + t/T2).*exp(-t/T1) + offset (fitting, harmonic oscillator)

fit_critical_damping( varargin )

image thumbnail

updated almost 3 years ago

fitting decaying oscillations by Stephan Koehler

From inputs t, y the best fit to the decaying oscillation is determined. (signal processing, fitting)

fit_decay_oscillations( varargin )

image thumbnail

updated 3 years ago

Orthogonal Linear Regression in 3D-space by using Principal Components Analysis by Ivo Petras

Orthogonal Linear Regression by using PCA (statistics, probability, total least squares)

fit_3D_data(XData, YData, ZData, geometry, visualization,...

image thumbnail

updated 3 years ago

2D Line Curvature and Normals by Dirk-Jan Kroon

Accurate Curvature and Normals of a line/contour consisting of 2D points (normals, normal, curvature)

N=LineNormals2D(Vertices,Lines)

k=LineCurvature2D(Vertices,Lines)

image thumbnail

updated 3 years ago

gaussian mix fit of multiple connected ellipses by Georg D

processes image data containing connected ellipses. we try to fit a gaussian mixture to ellipses. (image processing, ellipse, fitting)

exampleFindEllipses

fitMixGauss(xyData,nrgaussians,param,plotresult,replicate...

imageToData(img)

image thumbnail

updated 3 years ago

Smoothing 2D Contours Using Local Regression Lines by Tolga Birdal

This submission contains both the implementation and the test function for 2D contour smoothing. (smoothing, contour processing, chain codes)

test_smooth_contours()

image thumbnail

updated 3 years ago

quantreg.m - quantile regression by Aslak Grinsted

Quantile regression with bootstrapping confidence intervals (statistics, quantile, median)

[p,stats]=quantreg(x,y,tau,order,Nboot);

image thumbnail

updated almost 4 years ago

ZfitGUI(varargin) fits and simulates impedance data by Jean-Luc Dellis

ZfitGUI helps to identify a right model of complex data. (impedance, admittance, model)

ZfitGUI(varargin)

image thumbnail

updated 4 years ago

polyfit3 by Antoni J. CanĂ³s

Fit polynomial to data, with new features as forced to zero coefficients and data weighting. (approximation, interpolation, fitting)

polyfit3(x,y,n,nul,w)

image thumbnail

updated 4 years ago

AdvCurveFit by Robert Bemis

Solve complex curve fit problem with parameter pooling & stratification by nonlinear least-squares. (optimization, curve, fitting)

Adventures in curve fitting

PkBgErr(x,y,pk,bg)

[x,y]=limits(a)

image thumbnail

updated 5 years ago

Ellipsoid fit by Yury

Fits an ellipsoid to data using linear least squares. (ellipsoid, least squares, fitting)

ellipsoid_fit( X, flag, equals )

test_ellipsoid_fit.m

image thumbnail

updated 5 years ago

cubic Bezier least square fitting by Dr. Murtaza Khan

Approximation of data using cubic Bezier curve least square fitting (approximation, interpolation, cubic)

FindBezierControlPointsND(p,varargin)

Q=bezierInterp(P0,P1,P2,P3,varargin)

[MatGlobalInterp]=BezierInterpCPMatSegVec(p0mat,p1mat,p2m...

image thumbnail

updated 5 years ago

MATLAB(R) for Excel Users by Dan Doherty

Demo files from MATLAB for Excel Users webinar (webinar, excel, link)

checkmotor(rpm, motordata)

createfigure(x1, y1, y2)

dockfigures.m

image thumbnail

updated 5 years ago

MATLAB in Physics - Data Analysis by Matt McDonnell

The second lecture in a series on using MATLAB in undergraduate physics courses. (demo, lecture, physics)

[binEdges,N]=decayHistogram(decayTimes,varargin)

generateDecayData(sampleTime,sampleCount,halfLife,relativ...

pendulumDE(tVals,omega0,startAngle)

image thumbnail

updated 5 years ago

3D Least squares polynomial fit in x and y by Thomas

Fit a two dimensional f(x,y) polynomial to sampled x,y,z data triplets (optimization, image processing, signal processing)

image thumbnail

updated 5 years ago

fitting by morteza ahmadi

fitting with any function (fitting, function, amirkabir)

image thumbnail

updated 6 years ago

Straight-line fitting genetic algorithm by Evaristo Rojas Mayoral

It uses a genetic algorithm for straight-line fitting. (optimization, genetic algorithm, straightline)

image thumbnail

updated 7 years ago

gridtrimesh by Willie Brink

Fits a square grid surface of the form z = f(x,y) to a triangular mesh surface. (approximation, interpolation, square)

gridtrimesh(F,V,X,Y)

demonstration.m

image thumbnail

updated 8 years ago

gaussian curve fit by Yohanan Sivan

gaussian curve fit (statistics, probability, gaussian curve fit)

[sigma,mu,A]=mygaussfit(x,y,h)

main

image thumbnail

updated 8 years ago

Rational Polynomial curve fitting by Paul Godfrey

Fits a function to a quotient of polynomials (approximation, interpolation, rational)

image thumbnail

updated almost 9 years ago

GUI for Generalized Nonlinear Non-analytic Chi-Square Fitting by Nathaniel Brahms

Provides a Curve Fitting Toolbox-like interface for chi-square fitting (optimization, chisquare, nonlinear)

FitChiTool(varargin)

ModelEditor(varargin)

[params,dParams,gof,stddev]...

image thumbnail

updated 11 years ago

NNLS and constrained regression by Rasmus Bro

M-files for non-negativity constrained least squares regression. (statistics, probability, nonnegativity)

fnnls(XtX,Xty,tol)

fnnlsb(XtX,Xty,P_old,Z_old,tol)

image thumbnail

updated 12 years ago

uifit by Jean-Michel Rousseau

A GUI which uses fmins matlab core function "fmins" to fit data with any function. (optimization, fmins, fminsearch)

image thumbnail

updated almost 13 years ago

Spec1d by Emmanuel Farhi

1-D data visualisation and fitting. (optimization, fitting, 2dplotting)

image thumbnail

updated 13 years ago

chi_squared.m by Mike Scarpulla

Returns chi^2 given data and a fit (approximation, interpolation, fitting)

image thumbnail

updated almost 15 years ago

polyfit0.m by Arthur Jutan

Polyfit0 - similar to polyfit, except that the fitted polynomial does not have a constant term. (approximation, interpolation, polyfit)

Contact us