Signal labeler does not import timetable from workspace

6 views (last 30 days)
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 (1)

Ganesh
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!

Products


Release

R2023b

Community Treasure Hunt

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

Start Hunting!