Info
This question is closed. Reopen it to edit or answer.
I am trying to interpolate acceleration values but am getting an error.. can somebody guide me to rectify it ?
1 view (last 30 days)
Show older comments
if true
% code
end
num=xlsread('HASC24274-acc.csv');
timestamps = num(:,1);
signals = num(:,2:end);
first_time = timestamps(1);
last_time = timestamps(end);
Fs = 50;
period = datenum(1/Fs);
%period = datenum([0 0 0 0 0 1/Fs]);
probe_times = first_time : period : last_time;
resampled_data = interp1(timestamps, signals, probe_times);
end
if true
% code
endif true
% code
Error using griddedInterpolant
The grid vectors are not strictly monotonic increasing.
Error in interp1 (line 158)
F = griddedInterpolant(Xext,V,method);
end
0 Comments
Answers (0)
This question is closed.
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!