필터 지우기
필터 지우기

How to delete hidden pop up menu in GUIDE GUI???

조회 수: 1 (최근 30일)
Ian Flaherty
Ian Flaherty 2012년 7월 31일
답변: Image Analyst 2021년 2월 1일
I keep getting an error when I run my GUI that references a pop up menu that I cannot find on my GUI!!!
It keeps saying...
Error using feval Undefined function 'popupmenu44_CreateFcn' for input arguments of type 'double'.
When I go into my object browser on GUIDE it says that pop up menu 44 is there but it doesn't show up anywhere. I just want to be able to delete the object because there is no reference to it in my code...
Thanks,
-Ian
  댓글 수: 2
jumma almaghtuf
jumma almaghtuf 2021년 2월 1일
To delete it, just go to tools and navigate to Menu Editer, then delete it.
Adam Danz
Adam Danz 2021년 2월 1일
  1. What's feval? It's a Matlab function but it looks like you've name another funtion or file feval.
  2. Open that file (probably within a GUIDE gui) and search for the function named popupmenu44_CreateFcn; That's where your error is. I doubt it's creating the popup menu which is why you can't see it.

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

답변 (2개)

Jan
Jan 2012년 7월 31일
Perhaps its 'Visible' property is set to 'off' or it has been moved outside the visible area? Then check the 'position'.

Image Analyst
Image Analyst 2021년 2월 1일
I've seen this before (some sort of error on launching that mentioned a CreateFcn), just recently. Apparently I'd somehow deleted the CreateFcn accidentally. When I created a new one, the error went away. Add this to your m-file
%================================================================================================================================================================ ========================
% --- Executes during object creation, after setting all properties.
% EVEN THOUGH THIS FUNCTION IS EMPTY, DON'T DELETE IT OR ERRORS WILL OCCUR
function popupmenu44_CreateFcn(hObject, eventdata, handles)
% hObject handle to popupmenu44 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles empty - handles not created until after all CreateFcns called

카테고리

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