Effacer les filtres
Effacer les filtres

How to add a string to a popup-menu using a GUI?

15 vues (au cours des 30 derniers jours)
Samuel
Samuel le 25 Sep 2012
I need to add another string to a popup-menu button. Im using the function 'strcat' , but it adds the new string to all existing string and i want it to add only in a new line. What function i have to use?
Thanks

Réponse acceptée

Azzi Abdelmalek
Azzi Abdelmalek le 25 Sep 2012
Modifié(e) : Azzi Abdelmalek le 25 Sep 2012
use strvcat or char or {}
a='you';b='are';c='crazy'
s=char(a,b,c)
set(handles.popupmenu1,'string',s)
or
s=strvcat(a,b,c)
or
s={a,b,c}

Plus de réponses (0)

Catégories

En savoir plus sur Migrate GUIDE Apps dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by