How to switch show between 2 static text in matlab GUI
1 visualizzazione (ultimi 30 giorni)
Mostra commenti meno recenti
hide A and show N ,hide N and show A
3 Commenti
Adam
il 13 Giu 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.
Risposta accettata
Jan
il 9 Giu 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 Commenti
Jan
il 19 Giu 2017
Perhaps: if any(strcmp(status, 'A')) is simpler as the cellfun approach. If your code works, it is right. Does it work?
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Migrate GUIDE Apps in Help Center e File Exchange
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!