I want to make a GUI in which only those functions run whose radio button is on, but how to make it?
2 vues (au cours des 30 derniers jours)
Suppose I have 5 differential equations, but I only want to run and plot those, whose radio button is set 'on', and it's important that
more radio button can be selected at once. Do you guys have an idea how to make it? Thank you in advance!
Yongjian Feng le 3 Déc 2021
Modifié(e) : Yongjian Feng le 3 Déc 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.