Error using matlab.internal.math.interp1 The sample points must be finite.
이전 댓글 표시
when I ran a script,
for i=1:sz(2)
tOut(:,i) = interp1(x(:,i),v(:,i),xq(:,i));
end
I got those errors
Error using matlab.internal.math.interp1
The sample points must be finite.
Error in interp1 (line 188)
VqLite = matlab.internal.math.interp1(X,V,method,method,Xqcol);
Error in coolprop_tab.MoistAir.calcMoistHeatCool (line 782)
tOut(:,i) = interp1(x(:,i),v(:,i),xq(:,i));
댓글 수: 4
KSSV
2022년 4월 22일
Attach your data x, v and xq. It seems there is a problem with the data.
huiting wang
2022년 4월 22일
편집: Walter Roberson
2022년 4월 22일
huiting wang
2022년 4월 22일
huiting wang
2022년 4월 26일
채택된 답변
추가 답변 (1개)
huiting wang
2022년 4월 27일
0 개 추천
댓글 수: 2
凡奇
2022년 11월 12일
I‘m also getting the same error, but I don't know how to solve it.......
Bob photonics
2025년 2월 14일
Use this code to look for NaN/Inf values in your matrix/array/table
~isfinite(YourMatrix) %if it shows a logical 1 then you've a NaN/Inf value
[row, col] = find(~isfinite(YourMatrix)) % will show you all the locations where you have NaN values
카테고리
도움말 센터 및 File Exchange에서 Interpolation에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!