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

6 visualizzazioni (ultimi 30 giorni)
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?

Risposta accettata

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

Accedi per commentare.

Più risposte (0)

Tag

Community Treasure Hunt

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

Start Hunting!

Translated by