Umtoggle invalid function in plotguide

HI! I have some problems with Matlab plotgui. I have Matlab 7.6.0 (R2008a) in Windows XP. When I use the graphical interface for PLS-DA, I want to explore the numbers and table of my plot from the plot controls, but I have the following message:
PLOTGUI ERROR USING UMTOGGLE AT 9. UMTOGGLE FUNCTION IS OBSOLETE. SET THE CHECKED PROPERTY OF UIMENU INSTEAD.
Please can anyone help me with this?
Thanks in advance
Carolina D.A.

 Accepted Answer

Edit the source to
set(handle_of_uimenu, 'checked', 1 - get(handle_of_uimenu, 'checked'))
If that is not possible, then add your own umtoggle function earlier on the MATLAB path that does the above for you.

4 Comments

Thanks Walter for your answer. I'VE TRIED TO DO THIS: handle = uimenu('checked','on') but I could not eliminate the problem. I've also tried with the functions set and get but no results. CAN YU GIVE ME any other possibility?
Thanks in advance! Carolina
Somewhere in the code is trying to call umtoggle to change the menu status. The code you show is for creating a new menu. The code I showed is for changing the status of a existing menu.
You will need to locate the place that is calling umtoggle, but that should be easy:
dbstop if error
and then run. When it stops, you might have to
dbup
once to get to the code that contains the call to umtoggle
Hi Walter: I did what you suggested me by running it from the commando window. but no changes. I also tried to remove the umtoggle function from the toolbox but nothing. I think the best would be locate the place that is calling umtoggle how can I start? Thanks
Carolina
The "dbstop if error" together with "dbup" can be used to locate the call to umtoggle.

Sign in to comment.

More Answers (0)

Categories

Community Treasure Hunt

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

Start Hunting!