在matlab中读取.xml中数据!

.xml代码如下
<?xml version="1.0" encoding="UTF-8"
?>

- <dataset name="Walk2">

- <frame number="0">

- <objectlist>

- <object id="0">

<orientation>3</orientation>

<box h="19" w="46" xc="199" yc="224" />

<appearance>appear</appearance>

- <hypothesislist>

- <hypothesis evaluation="1.0" id="1" prev="0.0">

<movement
evaluation="1.0">walking</movement>

<role
evaluation="1.0">walker</role>

<context
evaluation="1.0">walking</context>

<situation
evaluation="1.0">moving</situation>

</hypothesis>

</hypothesislist>

</object>

- <object id="1">

<orientation>143</orientation>

<box h="29" w="36" xc="101" yc="70" />

<appearance>appear</appearance>

- <hypothesislist>

- <hypothesis evaluation="1.0" id="1" prev="0.0">

<movement
evaluation="1.0">walking</movement>

<role
evaluation="1.0">walker</role>

<context
evaluation="1.0">immobile</context>

<situation
evaluation="1.0">moving</situation>

</hypothesis>

</hypothesislist>

</object>
在matlab环境下读取 box中那四个数据

第1个回答  2014-05-04
读xml文件可以用matlab的xmlread。。。。
你这个xml文件都有好多错误
相似回答