|
|
How to display the result of a cell array in GUI
Dear Matlab users,
I have this small GUI program to calculate something. The results are stored in a (3x3) cell array. Let's say, each cell at the first two rows only has one value, each cell in the last row have multiple values. How do I display the results in a nice format in my GUI? Something like
Study A Study B Study C
UpperLimit 100 105 200
LowerLimit 50 60 100
Outliers 48 120 80
150 50 70
30
I tried to display them in a "table". It didn't work. I think the general question is how we display all the content of a cell array or a struct in a defined format.
Thanks for any help.
Jun
|
|
0
|
|
|
|
Reply
|
Jun
|
1/5/2010 11:15:22 PM |
|
For a general, assorted mixture of variables that are in the cells,
I'd build up a string using sprintf() and then display it in a static
text label. If the contents are special things that could use special
controls such as tables, axes, checkboxes, etc. then you can use
those, if appropriate, to display the values of the cell contents.
|
|
0
|
|
|
|
Reply
|
ImageAnalyst
|
1/5/2010 11:31:49 PM
|
|
ImageAnalyst <imageanalyst@mailinator.com> wrote in message <25cba042-b5ab-4f01-8afe-38af6a068d41@c34g2000yqn.googlegroups.com>...
> For a general, assorted mixture of variables that are in the cells,
> I'd build up a string using sprintf() and then display it in a static
> text label. If the contents are special things that could use special
> controls such as tables, axes, checkboxes, etc. then you can use
> those, if appropriate, to display the values of the cell contents.
Dear ImageAnalyst,
Thanks for your reply. Eventually I break the results into two parts in which the first part contains a matrix (2x3) whose dimension is fixed, the second part is a cell array whose dimension is determined by analysis results (the length of each column changes). Then the results can be displayed in two "tables".
Jun
|
|
0
|
|
|
|
Reply
|
Jun
|
1/8/2010 5:09:19 AM
|
|
|
2 Replies
797 Views
(page loaded in 0.208 seconds)
|
|
|
|
|
|
|
|
|