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

5 visualizaciones (últimos 30 días)
Johanna Maynes
Johanna Maynes el 15 de Sept. de 2016
Comentada: Walter Roberson el 30 de Mayo de 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?

Respuesta aceptada

KSSV
KSSV el 15 de Sept. de 2016
  5 comentarios
vishal kulkarni
vishal kulkarni el 30 de Mayo de 2022
Better to use built-in writestruct(struct, 'file.xml')
Walter Roberson
Walter Roberson el 30 de Mayo de 2022
Note: writestruct() is new as of R2020b.

Iniciar sesión para comentar.

Más respuestas (0)

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by