How to use pop-up menu to control table in GUIDE?
1 view (last 30 days)
Show older comments
![擷取.PNG](https://www.mathworks.com/matlabcentral/answers/uploaded_files/240643/%E6%93%B7%E5%8F%96.png)
My pop-up menu has 3 options, ex:Select(Value:1)、A(Value:2)、B(Value:3)
I want to know how to change the table when i choose the "A" or "B"
For example
When I choose "A",I want the table only display the column "date" and "A".
When I choose "B",I want the table only display the column "date" and "B".
I really want to know how to do that :(
Thanks everyone!
6 Comments
Walter Roberson
on 2 Oct 2019
d = {'Male',52,true;'Male',40,true;'Female',25,false};
is made-up input data that Ankit created as example data.
You would replace Ankit's default function with code that returned that cell array of dates and A and B columns that you posted.
Adam
on 2 Oct 2019
Unless your table is editable, in which case you will need something fancier to bring back the other column next time.
Answers (1)
See Also
Categories
Find more on Migrate GUIDE Apps in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!