MATLAB GUI, using guide

2 Ansichten (letzte 30 Tage)
Masoud Kavoosi
Masoud Kavoosi am 14 Mär. 2019
Kommentiert: Kevin Phung am 14 Mär. 2019
Hey guys,
I am developing a GUI, I have a cell of results with like 30 rows and 8 columns. I want to show this cell in a table in my GUI. Please take a look at the attached photo to see which table I exactly mean.
I would greatly appreciate any help.
Thank you

Akzeptierte Antwort

Kevin Phung
Kevin Phung am 14 Mär. 2019
The table has a 'Data' property.
So you can do something like this:
table_handle.Data = data_matrix
%or
set(table_handle,'Data',data_matrix)
  2 Kommentare
Masoud Kavoosi
Masoud Kavoosi am 14 Mär. 2019
Thank you Kevin for your answer, it gives me the hint to solve the problem. Actually the code below wrks for me.
set(handles.TableTag,'Data',ResultsCell);
I have another quesion. The table by default shows 2 columns and 4 rows. how can I set it? I would like the table cover the whole area or even doesn't show anything at all and just a white area. I tried to set it using the table inspector but it just shows 2 columns and 4 rows as you can see in the attached photo to my post.
Thank you again
Kevin Phung
Kevin Phung am 14 Mär. 2019
I dont work with guide, so i don't know the structure of your code.
perhaps you can set a condition where if your table is empty, you can turn the 'Visible' Property to 'off', and once youve plot your data, you can turn it 'on'.
set(handles.TableTag,'Visible','off');

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Tables finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by