interpolate (using interp) with a decimal number

3 ビュー (過去 30 日間)
Giorgis
Giorgis 2017 年 5 月 2 日
コメント済み: Star Strider 2017 年 5 月 4 日
Hi
I'm trying to interpolate using a non-integer number as required by interp command. Is there another function that would allow interpolation using a decimal number please?
Thanks

採用された回答

Star Strider
Star Strider 2017 年 5 月 2 日
編集済み: Star Strider 2017 年 5 月 2 日
I am not certain what you are asking. If you have integers and want to interpolate to the nearest integer, use the 'nearest', 'next', or 'previous' method option in your interp1 call.
You could also use the 'linear' method and the use floor, ceil, fix, or round to produce integer output from interp1.
  6 件のコメント
Giorgis
Giorgis 2017 年 5 月 4 日
You are quite right. I had to run a few examples and see that the lowpass filter changes the signal insignificantly. Thanks and good day!
Star Strider
Star Strider 2017 年 5 月 4 日
Thank you!
My pleasure!
May the Fourth be with you! (Today is ‘Star Wars Day’!)

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

その他の回答 (0 件)

カテゴリ

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