Hello,
lets say I have few simple data, in vectors and I want to approximate them with curve of order n. I searched here and found out that something called SLM (Shape language modeling) should be able to do it, but the problem is I cannot figure it our how does it work. There is only one example in the description and it doesnt work for me. I would be gratefull for any insights.

 채택된 답변

Cris LaPierre
Cris LaPierre 2020년 3월 26일

0 개 추천

These look like straight lines to me. I'd use polyfit.
If you have the Curve Fitting Toolbox, you could also use the fit function with the type set to 'poly1'.

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Linear and Nonlinear Regression에 대해 자세히 알아보기

제품

릴리스

R2019b

질문:

2020년 3월 26일

댓글:

2020년 3월 26일

Community Treasure Hunt

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

Start Hunting!

Translated by