Signal labeler does not import timetable from workspace
6 ビュー (過去 30 日間)
古いコメントを表示
I have a timetable with three variables
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1574642/image.png)
When I click import from workspace, it's empty it does not show the time tables.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1574647/image.png)
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
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1574652/image.png)
0 件のコメント
回答 (1 件)
Ganesh
2023 年 12 月 22 日
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!
0 件のコメント
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!