I am working on a project which requires the user be able to switch between graphs. For ease of use, I am attempting to use Radio Buttons to switch between graphs. In the callbacks for the selection of the radio buttons, I refer to outside scripts rather than placing the entire code within the radio buttons as a means of keeping things simpler. However, instead of running the scripts when a radio button is selected, another window identical to the original GUI opens. I can't figure out why this is and would like very much for the embedded axes to be updated with the desired graph rather than another GUI window open… Any suggestions?
MATLAB: GUI Self-Replicating Problem when Radio Button Clicked
guiMATLABradio buttonscript
Best Answer