Code using Curve Fitting Toolbox with Customized Function
13 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Saeid
el 18 de Mzo. de 2016
Comentada: Saeid
el 28 de Mzo. de 2016
Is it possible to write an automated code using the Curve Fitting Toolbox to fit data to a customized function? Example
clc
format short e
x = xdata
y = ydata;
f = fit(x,y,'Desired_Function')
plot(f,x,y)
Where desired function is something outside the usual default functions of Matlab. I usually need to make a fitting inside a bigger program and the fitting functions go beyond what Matlab offers in its library.
0 comentarios
Respuesta aceptada
Torsten
el 18 de Mzo. de 2016
You can supply an arbitrary anonymous function as fittype:
Best wishes
Torsten.
Más respuestas (0)
Ver también
Categorías
Más información sobre Get Started with Curve Fitting Toolbox en Help Center y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!