Estimate the unknown parameters of an equation with the help of matlab?

조회 수: 4 (최근 30일)
Sumesh KS
Sumesh KS 2020년 7월 14일
편집: Sumesh KS 2020년 7월 14일
Hello all,
We have some sample equations as given below (Not exact equations, these are for illustration purpose only). Let define new functional R_m = \frac{\theta_m}{Q}
I have sample data contain Q and as two columns. when we plot, Q along X axis and along Y axis, it gives a straight line.
Can I fit it with the functional to estimate the unknown parameters g , k with the help of matlab?

답변 (1개)

Star Strider
Star Strider 2020년 7월 14일
Parameter estimation is straightforward in MATLAB, even for relatively complicated problems.
Write your objective function to calculate values of as a function of Q, and you should have no problems fitting your data. It would be easiest to use nlinfit or lsqccurvefit, however those are two of many options.
Your objective function must be in the form:
objFcn = @(b,x) <expression>;
for it to work with any of these, with ‘b’ being the parameter vector, and ‘x’ being the independent variable (here, ‘Q’).

카테고리

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

제품

Community Treasure Hunt

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

Start Hunting!

Translated by