필터 지우기
필터 지우기

How do I interpolate a set of data?

조회 수: 2 (최근 30일)
Tobenna Uzuegbunam
Tobenna Uzuegbunam 2020년 5월 27일
답변: Sai Sri Pathuri 2020년 5월 29일
Hi,
I'm trying to interpolate a set of data, however, I keep getting the error message " Error using timetable/retime (line 140)
Input timetables must contain sorted (increasing or decreasing) row times when synchronizing using 'linear' ". Can anyone help me out? The data is a 15 minute data that I need retimed to 1 second. The code used seen below and the data is attached.
%import data
Lowesoftsst_10_2019 = importlowesoftssh('LowesoftTidal_10_2019.csv');
%change table to timetable
sshtimetable = table2timetable(Lowesoftsst_10_2019);
% Retime timetable
sshretimed = retime(sshtimetable,'regular','linear','TimeStep',seconds(1))

답변 (1개)

Sai Sri Pathuri
Sai Sri Pathuri 2020년 5월 29일
I assume importlowesoftssh is user-defined function. So, I cannot run the code at my end. However, from error, I think you need to sort the time column of sshtimetable file either in ascending/descending order to resolve the issue.

카테고리

Help CenterFile Exchange에서 Tables에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by