How to approximate simple data vectors?

15 ビュー (過去 30 日間)
Jan Mares
Jan Mares 2020 年 3 月 26 日
コメント済み: Jan Mares 2020 年 3 月 26 日
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 日
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'.
  1 件のコメント
Jan Mares
Jan Mares 2020 年 3 月 26 日
Thanks, I forgot about polyfit.. :)

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeLinear and Nonlinear Regression についてさらに検索

製品


リリース

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by