Convert a numeric vector to 1-D cell of strings
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
bethel o
am 31 Mär. 2023
Kommentiert: bethel o
am 4 Apr. 2023
How can one convert a numeric vector to 1-D cell of strings in a in one line without a loop and user defined lamda?
So convert
numbers=[1,2];
to
numbers_dropdown_item={'1','2'}.
A use case is with the accepted value for uidropdown.Items
0 Kommentare
Akzeptierte Antwort
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Characters and Strings finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!