resampling data into equal intervals
조회 수: 3 (최근 30일)
이전 댓글 표시
I have a dataset (attached) which has been sampled at unequal intervals, but for processing I need to resample this to every second.
The timestamps for each data point are in column 1, and the data in column 2.
I have looked at the information on resample on matlab help, but i'm struggling to work out how to do this for my dataset. Can anybody help?
댓글 수: 0
채택된 답변
Simon Chan
2022년 2월 14일
Try function retime
TT1=readtimetable('dataset.txt');
TT2 = retime(TT1,'secondly','linear'); % You may choose other method other than 'linear'
head(TT2,10) % Showing first 10 data
추가 답변 (0개)
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!