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

Piet
Piet 2024년 12월 16일
편집: Piet 2024년 12월 16일
this helped me too thanks

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

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

제품

릴리스

R2020a

태그

Community Treasure Hunt

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

Start Hunting!

Translated by