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

8 views (last 30 days)
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?

Accepted Answer

KSSV
KSSV on 15 Sep 2016
  5 Comments
vishal kulkarni
vishal kulkarni on 30 May 2022
Better to use built-in writestruct(struct, 'file.xml')

Sign in to comment.

More Answers (0)

Tags

Community Treasure Hunt

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

Start Hunting!