Signal labeler does not import timetable from workspace
Show older comments
I have a timetable with three variables

When I click import from workspace, it's empty it does not show the time tables.

How can I use timetables with the signal labeler app?
I couldn't find any restriction on the documentation. According to the documentation timetables are supported

Answers (2)
Ganesh
on 22 Dec 2023
I understand that you are trying to import a "Timetable" data into the Signal Labeler, but you are unable to do so.
The reason you are encountering the issue is that, the time format you are using is a "DateTime" type. Signal Labeler app allows you to import "Timetable" data that is defined by a Timeseries. To give you better understanding, you can try creating the following type of "Timetable" which will allow your data to be imported by Signal Labeler app.
ts1 = timeseries(rand(5,1),[0 10 20 30 40],"Name","Series_1");
ts2 = timeseries(rand(5,1),[0 10 20 30 40],"Name","Series_2");
ts3 = timeseries(rand(5,1),[0 10 20 30 40],"Name","Series_3");
TT = timeseries2timetable(ts1,ts2,ts3)
When you open "TT", you can notice that the "Time" data is defined by seconds and not by a "DateTime" value.
In your case, you can modify your "Time" data to represent a timeseries. Kindly refer to the following documentation to know more about the "timeseries() function":
Hope this helps!
While working in 2024b I encountered a similar issue. I was able to import my timetable after using retime to a uniform time step. The time variable must also be duration and not datetime.
% assuming TT is not regular
t = seconds( (1:100)' + rand([100 1]));
TT1 = timetable(rand([100,1]),'RowTimes',t);
isregular(TT1) % cannot import
TT = retime(TT1,'regular', 'linear', 'SampleRate', 400); % 400hz
isregular(TT) % can import
Categories
Find more on Descriptive Statistics in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!