The XML Toolbox converts MATLAB data types (such as double, char, struct, complex, sparse, logical) of any level of nesting to XML format and vice versa. For example, >> project.name = MyProject >> project.id = 1234 >> project.param.a = 3.1415 >> project.param.b = 42 becomes with str=xml_format(project, off ) "<project> <name>MyProject</name> <id>1234</id> <param> <a>3.1415</a> <b>42</b> </param> </project>" On the other hand, if an XML string XStr is given, this can be converted easily to a MATLAB data type or structure V with the command V=xml_parse(XStr).
标签: converts Toolbox complex logical
上传时间: 2016-02-12
上传用户:a673761058
Problem F:汽车加油 Time Limit:1000MS Memory Limit:65536K Total Submit:1400 Accepted:404 Language: not limited Description 一辆汽车加满油后可行驶n公里。旅途中有若干个加油站。设计一个有效算法,指出应在哪些加油站停靠加油,使沿途加油次数最少。 编程任务: 对于给定的n和k(k <= 10000)个加油站位置,编程计算最少加油次数。 Input 第一行有2 个正整数n和k,表示汽车加满油后可行驶n公里,且旅途中有k个加油站。接下来的1 行中,有k+1 个整数,表示第k个加油站与第 k-1 个加油站之间的距离。第0 个加油站表示出发地,汽车已加满油。第k+1 个加油站表示目的地。 Output 输出最少加油次数。如果无法到达目的地,则输出”No Solution”。 Sample Input 7 7 1 2 3 4 5 1 6 6 Sample Output 4
标签: Limit Accepted Language Problem
上传时间: 2016-04-12
上传用户:youth25
北京大学ACM比赛题目 In 1742, Christian Goldbach, a German amateur mathematician, sent a letter to Leonhard Euler in which he made the following conjecture: Every even number greater than 4 can be written as the sum of two odd prime numbers. For example: 8 = 3 + 5. Both 3 and 5 are odd prime numbers. 20 = 3 + 17 = 7 + 13. 42 = 5 + 37 = 11 + 31 = 13 + 29 = 19 + 23. Today it is still unproven whether the conjecture is right. (Oh wait, I have the proof of course, but it is too long to write it on the margin of this page.) Anyway, your task is now to verify Goldbach s conjecture for all even numbers less than a million.
标签: mathematician Christian Goldbach Leonhard
上传时间: 2016-04-22
上传用户:wangchong
实现功能码1,2,3,4,5,6,15,16的串口MODBUS通讯从站功能,与access交换数据(读写)
标签:
上传时间: 2016-05-12
上传用户:zm7516678
本计算器实现了如下两个功能: 1、windows自带计算器的键盘输入加减乘除,目前没有连续运算功能操作:用户用键盘或者鼠标分别输入‘1’,‘+’,‘2’,按‘=’ 文本框显示运算结果‘3’。 2、表达式运算功能,目前只支持整数运算。操作:选择菜单Option->Expression,在文本框用键盘输入表达式如‘12/2+(4*5/4)*6’,按计算器上‘=’,文本框显示运算结果 ‘12/2+(4*5/4)*6=36’。 3、换肤功能 提供了4种skin,可以自由切换。操作:菜单Skin->Load Skin,选择skin文件。
上传时间: 2016-06-30
上传用户:凤临西北
三菱PLC程序,5层6门程序,经典 ‘’
上传时间: 2014-01-04
上传用户:zyt
使用ModelSim对Altera设计进行功能仿真 对于没有使用到Altera的MegaWizard或LPM的设计而言,功能仿真比较简单,读者只需依据8.2.5小节描述的步骤依次执行即可,对于使用了MegaWizard或LPM的设计,则必需在仿真时指定相关的Altera库
标签: Altera MegaWizard ModelSim LPM
上传时间: 2013-12-10
上传用户:asdkin
linux下交叉编译spca5xx(中星微摄像头在linux下使用时用到的驱动)用到的Makefile文件,文件将针对linux2.5 2.6内核的驱动注释掉,修改了针对2.4内核的驱动。
标签: linux Makefile spca5xx 交叉编译
上传时间: 2016-07-21
上传用户:jackgao
用8088CPU构建一个微机应用系统,8255A、8×2键盘、6位七段数码管(共阴); 6位LED数码管可显示时、分、秒,并按正常时间显示方法工作;0~9为数字键,A~F为功能键。刚做的课设,有报告,有源程序,有硬件结构图
上传时间: 2016-07-22
上传用户:rocketrevenge
按照音符来设定频率和8253定时/计数器的延时时间。8253的CLK0接1MHz时钟,GATE0接+5V,OUT0接8255的PA0,J1接喇叭,编程使计算机的数字键1、2、3、4、5、6、7作为电子琴按键,按下即发出相应的音阶。 要求: (1)层以8255接八个开关K1~K8,做电子琴按键输入。 (2) 以8253控制扬声器,拨动不同的开关,发出相应的音阶。
上传时间: 2016-08-12
上传用户:225588