I save reports from my system in matlab in form of tables generated by the table()
command. To display these tables, I was using the disp(myTable)
. This was fine when I was viewing the tables only in the shell.
However, now I wish to build a GUI that will display these tables along with plots and other information. I found out I can display strings in the Static Text GUI elements by doing
set(handles.staticText1, 'String', 'My text! Yay!')
.
However, I can not figure out any simple way of turning data saved as table into a string.
Is there a simple way to display tables in GUI or do I need to manually extract all the columns from table?
EDIT: Ok, so I found a way of saving table into a string:
tableString=evalc('disp(table)')
But the result is a disaster and looks nothing like the neatly formatted string I get in the shell.