how can I convert an array in double format to string?
525 次查看(过去 30 天)
显示 更早的评论
Hi,
How can I convert an array, previously imported to MATLAB, in double format to string?
Thank you,
0 个评论
采纳的回答
Arkaniva Sarkar
2021-9-5
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 个评论
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Data Type Conversion 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!