Azzera filtri
Azzera filtri

"1x34 char" in GUI Table

1 visualizzazione (ultimi 30 giorni)
Cedric Götze
Cedric Götze il 15 Giu 2015
Risposto: Walter Roberson il 15 Giu 2015
Hello
I like to insert some values (numbers, strings and booleans) from a Matlab Script into my GUI Table. Everything works fine for short strings and numbers. But if my text is too long I recieve "1x34 char" in that column. This is my Code
table_id = {i};
table_title = get_param(simscapeclock(i),'Name');
msgbox(table_title);
table_parameter = get_param(simscapeclock(i),'Volume');
table_row = [table_id table_title table_parameter];
set(handles.chamber_table,'Data',table_row);
What am I doing wrong? What do I have to do for my boolean column? Thanks in advanced!
Cedric

Risposte (1)

Walter Roberson
Walter Roberson il 15 Giu 2015
You should be setting the ColumnWidth property to allow for wider strings. You should be setting the ColumnFormat property to handle logicals. See http://www.mathworks.com/help/matlab/ref/uitable-properties.html

Categorie

Scopri di più su MATLAB in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by