How save a struct to an xml-File in Matlab?

5 Ansichten (letzte 30 Tage)
Johanna Maynes
Johanna Maynes am 15 Sep. 2016
Kommentiert: Walter Roberson am 30 Mai 2022
I have a string in the workspace, that I can copy into an XML-File which then works perfectly fine. But how can I make Matlab directly save an xml from the string to a specified folder on my computer?

Akzeptierte Antwort

KSSV
KSSV am 15 Sep. 2016
  5 Kommentare
vishal kulkarni
vishal kulkarni am 30 Mai 2022
Better to use built-in writestruct(struct, 'file.xml')
Walter Roberson
Walter Roberson am 30 Mai 2022
Note: writestruct() is new as of R2020b.

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by