Filter löschen
Filter löschen

Info

Diese Frage ist geschlossen. Öffnen Sie sie erneut, um sie zu bearbeiten oder zu beantworten.

I am trying to interpolate acceleration values but am getting an error.. can somebody guide me to rectify it ?

1 Ansicht (letzte 30 Tage)
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

Antworten (0)

Diese Frage ist geschlossen.

Community Treasure Hunt

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

Start Hunting!

Translated by