how to make Reset Button in app designer
33 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
hello everyone, i have a problem for make a reset button in app designer. for the code with .value the result can't reset but in .text the result can reset. and my question is how to code for reset .value ? thanks![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/517417/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/517417/image.png)
1 Commento
Ruger28
il 12 Feb 2021
What type of edit field are you using? Text or Numeric?
Text fields can be blanked with a ' ' , but numeric fields can only be a value, so setting .value to 0 is the only thing you can do.
Risposte (1)
Mario Malic
il 12 Feb 2021
Hi,
you want to set the character array to a numeric field and that doesn't work. Numeric EditField components can't have an empty value. You can either set those values in green to zero, or change the EditField component to text one and use str2num.
0 Commenti
Vedere anche
Categorie
Scopri di più su Develop Apps Using App Designer in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!