- The value is NaN, blank, or a complex number.
Clearing an edit field (numeric) and text area
5 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Hey guys,
Just a quick question about how to clear a numeric edit field. Ive tried using the following code to clear both a numeric edit feild and text area. This code doesnt work as an error pops up saying the 'Value' must be double scalar

Thanks :)
0 comentarios
Respuestas (1)
Cris LaPierre
el 7 de Mayo de 2020
A numeric edit field cannot be blank. You can read more about the value properties of this component here.
MATLAB rejects the value if:
4 comentarios
Cris LaPierre
el 7 de Mayo de 2020
Ah, putting it in quotes makes it text, resulting in the error message you were seeing.
Ver también
Categorías
Más información sobre Structures en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!