how can I linear interpolation without using function

5 ビュー (過去 30 日間)
grace
grace 2021 年 3 月 20 日
回答済み: Walter Roberson 2021 年 3 月 21 日
i want linear interpolation id or 22d
and i have to liner interpolation without using function(interp1q)

回答 (2 件)

John D'Errico
John D'Errico 2021 年 3 月 20 日
Simple. just use interp1. You are not allowed to use interp1q. But interp1 is not interp1q.
  1 件のコメント
grace
grace 2021 年 3 月 21 日
No.. i don't want to use interp1 too.

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


Walter Roberson
Walter Roberson 2021 年 3 月 21 日
You can use polyfit() with polynomial degree one less than the length of your data, and then use polyval on the new list of coordinates. It is not going to look nice with the data you posted before (and removed), but you can do it. Spline will look even worse but you can do that too.

カテゴリ

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

Community Treasure Hunt

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

Start Hunting!

Translated by