Home > Software design >  Read and write XML in MATLAB
Read and write XML in MATLAB

Time:09-22

I would like to do exactly what readstruct and writestruct do in MATLAB 2020b :

S = readstruct(filename)
writestruct(S,filename)

But for MATLAB 2019, these methods don't exist. How can I accomplish the same behaviour in R2019?

CodePudding user response:

I'm not sure, if they do exactly the same as readstruct and writestruct, but there are two similar functions available in MathWorks' File Exchange:

struct2xml: https://de.mathworks.com/matlabcentral/fileexchange/28639-struct2xml

xml2struct: https://de.mathworks.com/matlabcentral/fileexchange/28518-xml2struct

  • Related