Display a string text in Matlab app.designer
8 views (last 30 days)
Show older comments
Hi
I am decoding some timetables with matlab vehicle network toolbox. The avaliable columns do often change in different logs.
In matlab live script i can simply show all avaliable colums names as:
rawTimeTable1 = "data"
msgTimetableJ1939 = j1939ParameterGroupTimetable(rawTimeTable1, canDB)
PGN = unique(msgTimetableJ1939.Name,"sorted")
answer:
PGN = 52x1 categorical
1 ACKM
2 AIR1
3 AMB
5 AT1OG2
...
Live script will show all unique columns names in log.
How do i - in Matlab app.designer - open up a windows showing a list with all these values?
I can simply "plot(PGN)" but that does not make a real list
Thanks!
2 Comments
Rik
on 29 Mar 2022
What exactly do you want to show?
There is a way to capture the output of what disp would show.
Walter Roberson
on 29 Mar 2022
https://www.mathworks.com/help/matlab/ref/uitextarea.html and set the content to string(PGN) ?
Answers (0)
See Also
Categories
Find more on Startup and Shutdown 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!