I'm making a Matlab GUI, where I have three checkboxes. The user first inters inputs in the editboxs and click the bush button and the program calculates. Then when the user selects the checkbox, I would like to be able to plot on the axis and when the other check box selected it plots the other plot. The problem is, since the calculation is made under the pushbutton callback function (for example it calculates for T and E) then when I write the plotting function for T under the checkbox callback function it , it is not recognizing one that I need to be plotted?
Any help is appreciated!