필터 지우기
필터 지우기

What is difference between fit and fitlm function in MATLAB?

조회 수: 4 (최근 30일)
Meghraj Kc
Meghraj Kc 2022년 6월 21일
답변: Sam Chak 2022년 6월 22일
I am trying to fit the data between two variable i.e., x and y. For fitting the data I am using fit and fitlm function.Upto the polynomial order 2 (poly2) I am geeting the same coefficient value from both function but while using the higher order polynomial greater than 2 I am geeting NaN value from fitlm function and some value from fit function. What is the reason behind this?
I have attached the screenshot of difference between two function and also the excel sheet that includes my data.

답변 (1개)

Sam Chak
Sam Chak 2022년 6월 22일

카테고리

Help CenterFile Exchange에서 Dimensionality Reduction and Feature Extraction에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by