I use cell array of strings to populate popup menu but strings in the popup menu are returned as scientific notation!
2 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Dear matlab users
I have 10x1 cell array of strings: 1001001 1001002 1001003 1001004 . . . 1001010
I use this code to set the strings in the popupmenu Matlab GUI:
set(handles.popupmenu14,'String',ListNoSG);
But in the popup menu the strings are shown as scientific notations: 1.001e+06, 1.001e+06, 1.001e+06, 1.001e+06, 1.00101e+06, 1.00101e+06, 1.00101e+06, 1.00101e+06, 1.00101e+06, 1.00101e+06.
Please note that the scientific notation 1.001e+06 is repeated 4 times while 1.00101e+06 is repeated 6 times.


I want in the popupmenu to be shown strings from the cell array: 1001001 1001002 1001003 1001004 . . . 1001010
Please tell me how to do it. I tried several workarounds found on internet but without success.
Thank you in advance.
0 Commenti
Risposta accettata
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Language Fundamentals 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!