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

fauzan ishaq
fauzan ishaq el 21 de En. de 2017
i also search about that please tell hot to do that
Walter Roberson
Walter Roberson el 21 de En. de 2017
The Answer given below is fine.

Iniciar sesión para comentar.

 Respuesta aceptada

Azzi Abdelmalek
Azzi Abdelmalek el 21 de Nov. de 2013

0 votos

a=num2cell((1:5)')
set(handles.popupmenu1,'string',a)

2 comentarios

SYED AZHAR
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 ?
a = num2cell( load('TheTextFile.txt') );
set(handles.popupmenu1, 'string', a);

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Modeling en Centro de ayuda y File Exchange.

Preguntada:

el 21 de Nov. de 2013

Comentada:

el 12 de Feb. de 2018

Community Treasure Hunt

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

Start Hunting!

Translated by