I want to make a GUI in which only those functions run whose radio button is on, but how to make it?
2 views (last 30 days)
Yongjian Feng on 3 Dec 2021
Edited: Yongjian Feng on 3 Dec 2021
Radio buttons or checkboxes?
You can have a figure with multiple plots. Say if you have 10 checkboxes, then put 10 plots in the figure. All XData and YData set to empty, then none of them will be shown.
Once the user selects the checkbox/radio button, then you update the XData and YData of the corresponding plot to the data from the corresponding equation.