-
1 Comment
Shlomo Geva
on 20 Dec 2019
This solution actually fails on the assertion when using the following test (my own). It happens because of computational precision produced from using linspace() // out by about 0.222 * 1.0e-15.
s = { ...
'Day Temp'
' 1 1.3'
' 5 9999'
' 6 9999'
' 5 9999'
' 6 9999'
' 2 1.12'
' 3 17'
' 4 16'
' 5 9999'
' 6 9999'
' 7 19'};
t_correct = [1.3 1.264 1.228 1.1920 1.156 1.12 17 16 17 18 19];
assert(isequal(read_and_interp(s),t_correct));
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!