필터 지우기
필터 지우기

pop up menu in GUI that connected and read from .mat file

조회 수: 6 (최근 30일)
Luhur
Luhur 2012년 5월 30일
i have 3 pop up menu that related and connected each other, at first i have 1 structure that contain 2 member data (save under the name car.mat).
let say: Car.truck.a=[5,6,3;1,1,1] Car.truck.b=[2,2,2;1.9.7] and Car.jeep.c=[10,20,30;6,6,6] Car.jeep.d=[7,7,7;0,2,4]
the 3 pop up menu are related, for example if i chose popup1 the string is jeep and truck, then after chose 1 ,let say i chose jeep, then the 2nd popup menu (popup2) pop up menu option become c or d, then after i chose d, the pop up menu option become (1,1), (1,2), (1,3),(2,1),(2,2) and (2,3). then after i chose (2,1) the value of text is 0.
how can i built this kind of case?? please be more specific, cause i'm a beginner... :) thank you

답변 (1개)

Walter Roberson
Walter Roberson 2012년 5월 30일
set() the pop-ups Enable property to be 'off' to start, except the first one. As each pop-up is used, it should set the next one's Enable to 'on', and set the String property to fieldnames() of the next layer.
  댓글 수: 5
Walter Roberson
Walter Roberson 2012년 5월 30일
Start at the beginning: how do you set the Enable property of those items to be 'off' ? And how, in a callback, do you set the Enable property of one of them to be 'on' ?
Luhur
Luhur 2012년 5월 31일
would you mind just giving me the demo or an example that similar to my application??

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

카테고리

Help CenterFile Exchange에서 Environment and Settings에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by