"Error using griddedInterpolant .The sample points must be finite."

24 ビュー (過去 30 日間)
Prajwal Gowdru Shanthamurthy
Prajwal Gowdru Shanthamurthy 2020 年 10 月 21 日
編集済み: Piet 2024 年 12 月 16 日
load samplefile.mat
interp_horizontal_radiation = interp1(time_sec,horizontal_radiation,interp_time_sec);
On using interp1 for the data set in mat file samplefile.mat, I get an error saying :
"Error using griddedInterpolant .The sample points must be finite."
All 3 argument inputs to interp1 are column vectors of double values. The double values contained in these vectors are finite. The column vectors are of finite length. I don't understand why this error pops up. Could anyone explain what is going wrong ? Thanks in advance.

採用された回答

Walter Roberson
Walter Roberson 2020 年 10 月 21 日
>> time_sec(95)
ans =
NaN
>> horizontal_radiation(95)
ans =
NaN
  2 件のコメント
Prajwal Gowdru Shanthamurthy
Prajwal Gowdru Shanthamurthy 2020 年 10 月 21 日
My bad! Thank you.
Piet
Piet 2024 年 12 月 16 日
編集済み: Piet 2024 年 12 月 16 日
this helped me too thanks

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

その他の回答 (0 件)

カテゴリ

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

タグ

製品


リリース

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by