export/import arbitrary data as text
2 次查看(过去 30 天)
显示 更早的评论
I am looking for a way to convert arbitrary array data (not structs) into a text format suitable for storage as a text field in a database, and the inverse function to read that data back into Matlab. The ideal solution would permit >2D arrays, and deal with cell, char, and all numeric data types, losing as little precision as possible.
I am currently converting such data into a binary blob, but this limits access to the data to Matlab, and I'm getting a lot of pressure for Python and other languages to be supported. This means the solution must be a string that can be converted by those other languages as well as created by them.
I can think of relatively easy solutions to 2D arrays, but if someone has already written an N-D solution that would be marvelous.
Thanks.
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Data Import and Export 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!