私の GUI には、1 つの検索ボタンの下にcolourcheck
との2 つのチェックボックスがあります。Texturecheck
検索ボタンをクリックすると、上記の両方のタイプがチェックされ、それぞれのプログラムが実行されます。また、両方のボックスが「MIN」の位置にある場合、つまりチェックされていない場合は、ユーザーにメッセージが表示されますselect type of search
。
search_callback プログラムをクリップしました。
function Search_Callback(hObject, eventdata, handles)
% hObject handle to Search (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data
% --- Executes on button press in colourcheck.
function colourcheck_Callback(hObject, eventdata, handles)
% hObject handle to colourcheck (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data
% Hint: get(hObject,'Value') returns toggle state of colourcheck
if (get(hObject,'Value') == get(hObject,'Max'))
Search_Callback(hObject, eventdata, handles)
else
% Checkbox is not checked-take approriate action
end
しかし、私は要件を満たすことができません。私を助けてください、どんな解決策もかなりのものです。