how can I linear interpolation without using function

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일

0 개 추천

Simple. just use interp1. You are not allowed to use interp1q. But interp1 is not interp1q.
Walter Roberson
Walter Roberson 2021년 3월 21일

0 개 추천

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.

카테고리

도움말 센터File Exchange에서 Interpolation에 대해 자세히 알아보기

질문:

2021년 3월 20일

답변:

2021년 3월 21일

Community Treasure Hunt

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

Start Hunting!

Translated by