Hi all,
I'm using a listbox and a popup menu in my Matlab GUI. They both have 3 items/options each.
Now when I run the GUI, the default item showing on the popup menu is option 1. The default item highlighted in the listbox is also number 1.
The problem is, these values which I think should be the default values are not used in the program. Some random values are chosen. Sometimes option number 1, sometimes 2, sometimes 3. How do I fix this? I would like the program to run using the option appearing in the popup menu and the one highlighted in the listbox, since naturally the user thinks these options will be used if they want to use them and they don't select them when they run the program as they're already selected. Can anyone help please?
Thanks.
Best Answer