Convert XML file to a MATLAB structure
显示 更早的评论
I'm trying to convert a XML file to a matlab structure (I want to use numbers and data from the file), I've tried to use the suggested XML parse function from the website, but it does not work.
Is there another function or is there someone who could explain how to use the function? BR Johan
采纳的回答
更多回答(3 个)
Pritom Kumar Saha
2021-8-3
4 个投票
Try
S = readstruct("abcd.xml")
it works on my matlab version.
It should work on matlab 2020b or higher version.
3 个评论
NitzBr
2021-12-13
THANK YOU!
Seth
2022-3-9
This worked for me very well - thank you!
xmlread did not work well for my files/data. This is a good example of why this site is so helpful!
S. Gokhun Tanyer
2022-12-19
Thanks, worked elegantly. No problem left on my side. Thanks again!
Brad
2011-9-12
1 个投票
wildan
2011-10-12
1 个投票
How to convert DWG to XML. DWG is format from AutoCAD
1 个评论
Walter Roberson
2022-3-9
I wonder if you could do it by way of ActiveX ?
类别
在 帮助中心 和 File 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!