How to use least squares fit with bisquare weights

조회 수: 1 (최근 30일)
RuiQi
RuiQi 2016년 12월 22일
답변: KSSV 2016년 12월 22일
I am trying to fit a line/curve to a plot that looks quite noisy. I think it looks like a straight line or a very light curve. I read about least squares fitting with bisquare weights and I am trying that http://www.mathworks.com/help/curvefit/least-squares-fitting.html
Problem is I think the sample code doesnt provide the sample for the bisquare weights so im quite confused as to how I can implement it.

채택된 답변

KSSV
KSSV 2016년 12월 22일
You can use polyfit to fit your data. You can refer the following link: https://in.mathworks.com/matlabcentral/answers/27600-linear-fit.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Get Started with Aerospace Blockset에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by