Effacer les filtres
Effacer les filtres

How to add control to restore all default values in a live script?

26 vues (au cours des 30 derniers jours)
Jacob Baier
Jacob Baier le 16 Mar 2022
Modifié(e) : Nidhi Jain le 27 Juin 2024 à 4:22
I am attempting to add a simple control button that will restore all other controls to their default values. The point of this live script is to allow the user to modify all ten variables at their will, but I would like an easier reset than right-clicking each control and selecting "Restore Default Value". How can I accomplish this?

Réponses (2)

Nidhi Jain
Nidhi Jain le 12 Juil 2022
Hi Jacob,
Thank you for your interest in interactive controls. Currently, there is no way to reset all the interactive controls using a single option. But, this is something our development team is aware of and is considering. This feedback is useful, and we hope to address it in an upcoming release.
  5 commentaires
Justin Bell
Justin Bell le 8 Fév 2024
I'm still not seeing this as of 2024-prerelease, if it's in here I'd love to know where
Gokhan Pekcan
Gokhan Pekcan le 19 Mar 2024
Modifié(e) : Gokhan Pekcan le 19 Mar 2024
PLEASE, it’s been over two years, something needs to be done.
Furthermore, one last used value from a “list” of item values appears in dropdown as a possible selectable value even though the “variable” that generates the list becomes an empty one. Dropdown must correctly update and show blank.

Connectez-vous pour commenter.


Nidhi Jain
Nidhi Jain le 26 Juin 2024 à 17:47
Modifié(e) : Nidhi Jain le 27 Juin 2024 à 4:22
Hello,
Starting with R2024b, you can restore all interactive controls to their default values by right-clicking on any control and selecting "Restore Default Values for All Controls."
Feel free to try it out in the R2024b Prerelease. Let me know if you have any questions.

Catégories

En savoir plus sur Introduction to Installation and Licensing dans Help Center et File Exchange

Produits


Version

R2021b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by