problem with using if statements
古いコメントを表示
i have 2 options in popupmenu and both of the options has 2 panels which contain pushbutton. when i select option1, the pushbutton in panel2 is disabled..when i select option2, the pushbutton in panel1 is disabled.
v=get(handles.selectGroup, 'Value');
switch v
case 1
set(handles.capturecolorButton,'Enable','off');
set(handles.ROI2Button,'Enable','on');
case 2
set(handles.capturecolorButton,'Enable','on');
set(handles.ROI2Button,'Enable','off');
otherwise
end;
what can be corrected?
6 件のコメント
Arthur
2012 年 11 月 6 日
What it the problem? This code seems correct to me.
joanna
2012 年 11 月 6 日
Arthur
2012 年 11 月 6 日
do you get an error? Did you try to step through the script line for line?
joanna
2012 年 11 月 6 日
Arthur
2012 年 11 月 6 日
Please copy the entire error message you get, we're shooting in the dark here....
joanna
2012 年 11 月 6 日
採用された回答
その他の回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で App Building についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!