How to switch show between 2 static text in matlab GUI
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
Adisorn Phanukthong
el 9 de Jun. de 2017
Comentada: Jan
el 19 de Jun. de 2017
hide A and show N ,hide N and show A
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/165012/image.png)
3 comentarios
Adam
el 13 de Jun. de 2017
I don't know what your exact code is that needs this, but you shouldn't need anything complicated like a cellfun, but you never really stated what the trigger is for changing the visible status.
Respuesta aceptada
Jan
el 9 de Jun. de 2017
Either change the String and Color property of one text object. Or set the 'Visible' property of one to 'on' and the other to 'off'.
2 comentarios
Jan
el 19 de Jun. de 2017
Perhaps: if any(strcmp(status, 'A')) is simpler as the cellfun approach. If your code works, it is right. Does it work?
Más respuestas (0)
Ver también
Categorías
Más información sobre Migrate GUIDE Apps en Help Center y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!