摘要: 这段代码模拟了警察抓小偷,密室之中,小偷想偷到珠宝,自己有个探测器,警察也有探测器,不过是探测小偷用的,警察之间可以相互传递消息。下面是程序的输入文件parameter.txt# Size of side of square room (even integer), in m2# Radius of entry circle, in m 0.6# Position of treasure (x and y coords), in m 0.5 0.5# Range of anti-cloaking device, in cm 150# Position of the escape route ( 阅读全文
posted @ 2013-05-23 17:56 花考拉 阅读(388) 评论(0) 推荐(0) 编辑
摘要: 给朋友做的,当是放松了。。。本人真心不会matlab,下面的代码不代表个人水平,纯属堆砌。这个程序模拟了一些机器人在一个方形空间中的移动轨迹。clc;clear all;close all;%--------------------Input parameters------------------%R=input('Number of Robots: ');%L=input('Length of the Room (m): ');%N=input('Number of Steps: ');%S=input('Maximum Size o 阅读全文
posted @ 2013-05-23 17:48 花考拉 阅读(326) 评论(0) 推荐(0) 编辑
点击右上角即可分享
微信分享提示