fitting equation in Matlab?

1 visualización (últimos 30 días)
Aseel Alamri
Aseel Alamri el 8 de Nov. de 2020
Respondida: Cris LaPierre el 9 de Nov. de 2020
clear all;
syms V(t) a b C
cond = [V(0) == C]
eq = diff(V) == a*V-b*V*log(V)
[sol] = dsolve(eq, cond)
gompert = @(V, t) eval(subs(sol, [a b C], [V(1) V(2) V(3)]));
[v1, v2] = lsqcurvefit(gompert, [1,1,1], time', Voltage')
FitFunction = gompert(v1, time)
plot(time, Voltage, 'ro', time, FitFunction, 'b')
Can someone help with this ?

Respuestas (1)

Cris LaPierre
Cris LaPierre el 9 de Nov. de 2020
Are you able to access the curve fitting app? That might be an easier way to interactively fit to your data.

Categorías

Más información sobre Mathematics en Help Center y File Exchange.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by