필터 지우기
필터 지우기

how can i choose data in the popupmenu in GUI?

조회 수: 2 (최근 30일)
MAHMOUD ALZIOUD
MAHMOUD ALZIOUD 2017년 12월 1일
댓글: Greg 2017년 12월 5일
hello everyone, i have data that is for two months, January and July, the data is called class9_data, i already programmed the push-button to execute some analysis, but the thing is how can i tell the function to choose the month of data first then execute the function, i wrote this code but it is not working: Note: K is an index representing the two months or the two files to be read. please help
cla;
M{K}=Class9_data{K};
state=get(handles.popupmenu1,'value');
switch state
case 1
set(handles.push1,'Class9_data{K}',all_mat(MonthName{K} == 1, :));
case 2
set(handles.push1,'Class9_data{K}',all_mat(MonthName{K} == 7, :));
end
  댓글 수: 3
MAHMOUD ALZIOUD
MAHMOUD ALZIOUD 2017년 12월 5일
Thank you very much, I solved it, how can I please accept your answer?
Greg
Greg 2017년 12월 5일
I posted a comment rather than an answer, so there's nothing to accept.
Glad you got it working.

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

답변 (0개)

카테고리

Help CenterFile Exchange에서 Migrate GUIDE Apps에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by