fitting equation in Matlab?

조회 수: 13 (최근 30일)
Aseel Alamri
Aseel Alamri 2020년 11월 8일
답변: Cris LaPierre 2020년 11월 9일
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 ?

답변 (1개)

Cris LaPierre
Cris LaPierre 2020년 11월 9일
Are you able to access the curve fitting app? That might be an easier way to interactively fit to your data.

카테고리

Help CenterFile Exchange에서 Mathematics에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by