フィルターのクリア

polynomial fit with boundary conditions

19 ビュー (過去 30 日間)
DF
DF 2012 年 2 月 16 日
編集済み: Matt J 2013 年 10 月 15 日
I would like to make a polynomial fit for a vector, but imposing some boundary conditions: second derivative at the edges is zero. How can this be done?

採用された回答

John D'Errico
John D'Errico 2012 年 2 月 16 日
Don't!
You are describing what appears to be a spline, but will be a high order polynomial, subject to constraints. This will invariably produce crapola.
Use a spline to do the job of a spline. If you can't write that yourself, then use code from the file exchange that does it for you.
  3 件のコメント
Bjorn Gustavsson
Bjorn Gustavsson 2012 年 2 月 17 日
Mathworks spline toolbox has tools for splines of arbitrary order. (I thought John's SLM-tool had too.)
DF
DF 2012 年 2 月 17 日
Well, I have no idea how to add boundary conditions to a spline fit in Matlab. The SLM tool seemed exactly what I was looking for, but I would like to use 4th and 5th order splines.

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeSpline Postprocessing についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!

Translated by