how can I convert an array in double format to string?
761 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Hugo
am 5 Sep. 2021
Beantwortet: Arkaniva Sarkar
am 5 Sep. 2021
Hi,
How can I convert an array, previously imported to MATLAB, in double format to string?
Thank you,
0 Kommentare
Akzeptierte Antwort
Arkaniva Sarkar
am 5 Sep. 2021
You can either use string(arr) or num2str(arr), depending on what you desire. string(arr) will create a string array by converting each element in the array to string (for example, [ "1", "2", "3" ]) whereas num2str(arr) will convert the whole array into a string (example, [ '1 2 3' ]).
0 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Data Type Conversion 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!