I created a menu from the menu editor using GUIDE.
I assigned the tag for the File as: file_menu
and the tag for the reset (child of file) as: File_Reset_Menu
and then I programmed the callbacks.
but when I click on File, nothing appears in the command window. (File menu selected should appear, right?)
the same goes for the reset, when I press it does not clear the text box which handles is : handles.Edtxt_Eng
Please help.
Thanks.
function file_menu_Callback(hObject, eventdata, handles)
% hObject handle to edit_menu (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
display('File menu selected');
function File_Reset_Menu_Callback(hObject, eventdata, handles)
set(handles.Edtxt_Eng,'String', ' ');

댓글 수: 2

Image Analyst
Image Analyst 2020년 4월 12일
편집: Image Analyst 2020년 4월 12일
Did you try setting a breakpoint on those lines to see if it gets there? Attach the fig file and the m file so I can try it.
MORHAF ALLABABIDI
MORHAF ALLABABIDI 2020년 4월 12일
Nvm.. I was told that it is a bug in Matlab2019b.. I installed Matlab2020a and everything worked perfectly

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

답변 (0개)

카테고리

도움말 센터 및 File Exchange에서 Simulink Environment Customization에 대해 자세히 알아보기

제품

릴리스

R2019b

태그

질문:

2020년 4월 12일

댓글:

2020년 4월 12일

Community Treasure Hunt

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

Start Hunting!

Translated by