Load txt data into popupmenu
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
jose bernardo
el 21 de Nov. de 2013
Comentada: Walter Roberson
el 12 de Feb. de 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 comentarios
Respuesta aceptada
Azzi Abdelmalek
el 21 de Nov. de 2013
a=num2cell((1:5)')
set(handles.popupmenu1,'string',a)
2 comentarios
SYED AZHAR
el 12 de Feb. de 2018
if u have text file like above and i want to populate into popup menu then how ?
Walter Roberson
el 12 de Feb. de 2018
a = num2cell( load('TheTextFile.txt') );
set(handles.popupmenu1, 'string', a);
Más respuestas (0)
Ver también
Categorías
Más información sobre Migrate GUIDE Apps 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!