Issue with array2timetable = Row times must be datetime or duration vector with one time for each row in input timetable.

조회 수: 27 (최근 30일)
Hey guys,
I have an issue with array2timetable!
example data is given :)
length(t{1}) == length(d{1}) %t and d are same length
TT = array2timetable(t{1},'RowTimes',d{1});
When I want to execute it, get this error:
Error using array2timetable (line 71): Row times must be datetime or duration vector with one time for each row in input timetable.
I don't understand why.. can someone help me please? Thank you!
  댓글 수: 4

댓글을 달려면 로그인하십시오.

답변 (2개)

Jon
Jon 2019년 8월 5일
편집: Jon 2019년 8월 5일
It looks like you may have the arguments reversed. The first argument should be the data (doubles) the last argument should be the time values.
See
  댓글 수: 2
Jon
Jon 2019년 8월 5일
Sorry, I didn't read your description carefully, I just assumed that d was mnemonic for double and t for time, but I see that is not the case.

댓글을 달려면 로그인하십시오.


Jonas Haupt
Jonas Haupt 2019년 8월 5일
I attached example data
  댓글 수: 4
Jon
Jon 2019년 8월 5일
Did you mean to accept your own posting of example data as the answer? Maybe makes sense as in the end there wasn't really any explanation for what had gone wrong.
Guillaume
Guillaume 2019년 8월 5일
The example data should have been posted as a comment to the question, and indeed it shouldn't have been accepted as the answer.

댓글을 달려면 로그인하십시오.

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by