You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What steps will reproduce the problem?
1. Using mat2json on a struct array will only export the first element
2. Using mat2json on an array field means the second argument is the field
value (and is therefore treated like a filename) and not blank.
3. Hard to read very large json output.
4. Strings with non-valid json characters are exported directly, rather than
being escaped
What version of the product are you using? On what operating system?
Matlab release 13
Please provide any additional information below.
Have attached a version of mat2json which fixes or works around the above
issues. May want to consider merging into code base. In particular:
1. Handle struct arrays by creating [{},{}] (all arrays treated as
one-dimensional)
2. Changed logic of fopen statement to require the call to be at the top of
stack only (i.e. recursive calls do not result in trying to fopen)
3. Added some code to put in CR LF after field names and structures
4. Check directly for 'char' class and replace non-printable characters with
space.
Original issue reported on code.google.com by [email protected] on 9 Dec 2010 at 1:37
Thank you for your code Andrew, when I run the "pub" command to test the doce
it generates an error. Could you run that command with your version of mat2json
and see what may be causing the problem.
cheers,
Jonas
Original issue reported on code.google.com by
[email protected]
on 9 Dec 2010 at 1:37Attachments:
The text was updated successfully, but these errors were encountered: