How can I use a a text file as a source for your popup menu in guide (i.e. items in the list)
1 view (last 30 days)
Show older comments
Kwaku Amanfro
on 22 Apr 2014
Commented: Kwaku Amanfro
on 25 Apr 2014
I am trying to make a database system to store information into specified profiles. I have been successful in setting up the structure for the profiles, but however the number of profiles keep on updating per usage. I have managed to to write a .m file to write all names of profiles into a .txt file. I simply need a solution upon how I can link this .txt file to my drop down menu in guide.
2 Comments
Accepted Answer
Joseph Cheng
on 22 Apr 2014
however you have the popup menu updated, read in the text file with each entry as a cell(M profiles in one column). Then you can update the popup menu with
set(handles.popupmenu1,'String',profileNamesReadfromTXT)
More Answers (0)
See Also
Categories
Find more on Migrate GUIDE Apps in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!