本文主要是介绍matlab读取xml文件里面的数据并使用plot绘图,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
经过一周的学习,今天终于把xml文件里面的数据用matlab读取,并将字符型转换为double型,成功画出图形。
test.xml文件如下,包含一种节点<meanValue>,长度为13
<?xml version="1.0"?>
<opencv_storage>
<meanValue>4.3504226684570311e+000</meanValue><!-- resumed --><meanValue>4.3509033203124998e+000</meanValue><!-- resumed --><meanValue>4.3439079284667965e+000</meanValue><!-- resumed --><meanValue>4.3564590454101566e+000</meanValue><!-- resumed --><meanValue>4.3604904174804684e+000</meanValue><!-- resumed --><meanValue>4.3600425720214844e+000</meanValue><!-- resumed --><meanValue>4.3680847167968748e+000</meanValue><!-- resumed --><meanValue>4.3724212646484375e+000</meanValue><!-- resumed --><meanValue>4.3660362243652342e+000</
这篇关于matlab读取xml文件里面的数据并使用plot绘图的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!