curve fitting with trend

조회 수: 1 (최근 30일)
Vick
Vick 2017년 10월 14일
Hi,
I want to fit a curve in matlab by giving a initial guess and i want the curve fitting algorithm to maintain the same trend as my initial guess, even if the coefficient doesn't fully fits the curve also it is fine. Does least square method does this?
For example,
My initial guess is [10,12,17,21] i want the output in the same trend(in this case it is increasing), say i need an output like [1,2,3.5,5] or may be [100,104,107,110] but not like [1,-40,200,5]. Does any function does this?
My second question,
if i want to fit a curve in matlab i want to create a function and then feed the initial guess but what if my function has an intrepolation function in it? Will the system still solves(i'm aware that nlinfit will solve it but not follows the trend of initial guess)?
I've both optimization and curve fitting toolbox.

답변 (0개)

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by