How to use pop-up menu to control table in GUIDE?

조회 수: 2 (최근 30일)
Chia Yu li
Chia Yu li 2019년 10월 1일
답변: Ankit 2019년 10월 7일
擷取.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
Walter Roberson
Walter Roberson 2019년 10월 2일
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
Adam 2019년 10월 2일
Unless your table is editable, in which case you will need something fancier to bring back the other column next time.

댓글을 달려면 로그인하십시오.

답변 (1개)

Ankit
Ankit 2019년 10월 7일
hi chia yu li,
here you can find such GUI.
thanks
Ankit

카테고리

Help CenterFile Exchange에서 Interactive Control and Callbacks에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by