MATLAB: Load txt data into popupmenu

popup menu load txt

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.

Best Answer

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