How can I interpolate a vector to increase the length up to a desired quantity?

3 ビュー (過去 30 日間)
Abdel Karim Ruvalcaba Perez
Abdel Karim Ruvalcaba Perez 2022 年 3 月 25 日
回答済み: Matt J 2022 年 3 月 25 日
Basically my problem is that I have measured with one device and I got different vectors with a specific wavelength and rate (every 3 nm).
My problem begun when I found out that I need to add a correction to the measurements, the correction has the same wavelength but a different rate (every 5 nm). So I need to interpolate so I get the same length for both vectors and ten I can add the correction.
How Can I do the interpolation?
I include the data set in the attachment. The Galad1 is the output data from my device

回答 (1 件)

Matt J
Matt J 2022 年 3 月 25 日
You can do it with interp1() or griddedInterpolant().

カテゴリ

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

タグ

製品


リリース

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by