Ho to reduce the table to 1dim?
Infos
Cette question est clôturée. Rouvrir pour modifier ou répondre.
Afficher commentaires plus anciens
I use the GUIDE option and placed a table.
The table size is 4×6.
I want to have it 1×6 -> I tried to delete the extra rows with no success. It keep on returning them when I press Apply/OK
Réponses (1)
Sean de Wolski
le 13 Fév 2013
A uitable's size is determined by the size of its 'Data' property. So change that:
h = uitable('Data',rand(4,6));
%%To Reduce it:
set(h,'Data',1:6)
7 commentaires
Sean de Wolski
le 13 Fév 2013
Whereever you want to reduce the size. Whether it's the createfcn or some callback, it's kind of up to you...
Nimrodb
le 13 Fév 2013
Sean de Wolski
le 13 Fév 2013
Not sure why you need the cellfun():
uitable('Data',cell(1,6))
Just calling the below will create an empty cell.
cell(1,6)
Nimrodb
le 20 Fév 2013
Sean de Wolski
le 20 Fév 2013
So
repmat({''},1,6)
?
Cette question est clôturée.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!