Hi all,
I recently started playing with GUIs in Matlab but I ran into a problem. I created a GUI with GUIDE and inserted a button, and then converted that button into a toggle button. As soon as I did, the toggle button turned itself on and I was unable to turn it off with GUIDE (turning it off in the properties panel i.e. setting its value to 0 would revert upon saving and opening the GUI again).
I was finally able to turn it off by coding its value to 0, but once I press it in the GUI, I am unable to turn it off again. Does anyone have any insight into this problem?
There's only one toggle button, if that matters.
Thanks, John
Yes I did change the 'Style' property as Geoff asked.
The problem was that when you put a togglebutton in a button group only one can be selected at any time. I'll select Image Analyst's response as the answer because it is the closest to being right.
Best Answer