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

조회 수: 4 (최근 30일)
Johanna Maynes
Johanna Maynes 2016년 9월 15일
댓글: Walter Roberson 2022년 5월 30일
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?

채택된 답변

KSSV
KSSV 2016년 9월 15일
  댓글 수: 5
vishal kulkarni
vishal kulkarni 2022년 5월 30일
Better to use built-in writestruct(struct, 'file.xml')
Walter Roberson
Walter Roberson 2022년 5월 30일
Note: writestruct() is new as of R2020b.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Structured Data and XML Documents에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by