text substitute for MAT files

1 view (last 30 days)
Tom Sgouros
Tom Sgouros on 15 Feb 2019
Commented: Walter Roberson on 17 Feb 2019
Hello all:
I am debugging a large Matlab application from 2014 (tens of thousands of lines) and the previous developer used .MAT files to store data and also to pass it here and there. I think maybe he didn't understand how to pass data to callbacks, but that's neither here nor there. Somewhere the data is getting corrupted, and by a certain point in the application it is reliably wrong.
I thought of changing all the save() and load() functions to use the -ascii version to see if I could figure out when and where it goes wrong. Unfortunately, -ascii does not seem to save structs. Is anyone aware of a way to store and restore complicated (but not particularly large) Matlab variables as text?
Thank you,
-Tom
  6 Comments
Tom Sgouros
Tom Sgouros on 17 Feb 2019
JSON would be perfect. Thank you!

Sign in to comment.

Answers (0)

Products


Release

R2018b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!