text substitute for MAT files

1 vue (au cours des 30 derniers jours)
Tom Sgouros
Tom Sgouros le 15 Fév 2019
Commenté : Walter Roberson le 17 Fév 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 commentaires
Tom Sgouros
Tom Sgouros le 17 Fév 2019
JSON would be perfect. Thank you!

Connectez-vous pour commenter.

Réponses (0)

Produits


Version

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by