Load txt data into popupmenu
1 visualizzazione (ultimi 30 giorni)
Mostra commenti meno recenti
jose bernardo
il 21 Nov 2013
Commentato: Walter Roberson
il 12 Feb 2018
Hello:
I have a txt like this:
1
2
3
4
And I would like to load this 4 lines into a popupmenu (popupmenu1).
How can I would do this??
Thanks for your attention.
2 Commenti
Risposta accettata
Azzi Abdelmalek
il 21 Nov 2013
a=num2cell((1:5)')
set(handles.popupmenu1,'string',a)
2 Commenti
SYED AZHAR
il 12 Feb 2018
if u have text file like above and i want to populate into popup menu then how ?
Walter Roberson
il 12 Feb 2018
a = num2cell( load('TheTextFile.txt') );
set(handles.popupmenu1, 'string', a);
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Migrate GUIDE Apps 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!