# zombie
This is a more optimised version (**created by Kin Fai Franco Chan and Zakaria Achouri**) of the original MATLAB zombie apocalypse group project (https://github.com/UoMLegends/Zombie). This version uses vectorisation for movement increment, uses `knnsearch` for finding nearest enemy and preallocation for memory efficiency.
### To run the simulation, do the following steps:
1. save all the m files from this repository
2. execute `zombieBasic.m` using MATLAB
3. enjoy watching the zombie apocalypse simulation
4. execute `population.m` to plot the graphs of zombie population and human population versus time
To simplify things, we modelled our zombie apocalypse based on a few simple behaviours of both zombies and humans.
### Basic behaviours of zombies and humans:
* If human and zombie are **far away** from each other, they simply **move randomly** (Brownian motion).
* If human and zombie are **relatively close** to each other, then the zombie would **chase** after the human, and the human would **run away**.
* If a zombie is close to **multiple humans**, then the zombie would chase after the **closest** human.
* If human and zombie are **very close** to each other, then they will **fight**. Sometimes the human wins the fight, which results in killing the zombie. And sometimes the zombie wins the fight, which results in turning the human into a zombie.
### Feel free to modify the parameters on `zombieBasic.m`:
Parameters | Descriptions
---------- | ------------
`z0` | the initial zombie population
`h0` | the initial human population
`zSpeed` | zombie movement top speed
`hSpeed` | human movement top speed
`zSightRadius` | maximum distance a zombie can sense the presence of a human (for chase)
`hSightRadius` | maximum distance a human can sense the presence of a zombie (for chase)
`zAttackRadius` | maximum distance a zombie can attack from (for fight)
`hAttackRadius` | maximum distance a human can attack from (for fight)
`lim` | the length and the width of the arena (square arena)
`pz`| the probability of zombie successfully converting a human to a zombie
`ph`| the probability of human successfully killing a zombie
没有合适的资源?快使用搜索试试~ 我知道了~
毕业设计&课设-MATLAB僵尸启示录模拟.zip
![preview](https://csdnimg.cn/release/downloadcmsfe/public/img/white-bg.ca8570fa.png)
共4个文件
m:2个
mp4:1个
md:1个
![preview-icon](https://csdnimg.cn/release/downloadcmsfe/public/img/scale.ab9e0183.png)
需积分: 1 1 下载量 115 浏览量
2024-01-08
22:33:14
上传
评论
收藏 51.53MB ZIP 举报
温馨提示
matlab算法,工具源码,适合毕业设计、课程设计作业,所有源码均经过严格测试,可以直接运行,可以放心下载使用。有任何使用问题欢迎随时与博主沟通,第一时间进行解答! matlab算法,工具源码,适合毕业设计、课程设计作业,所有源码均经过严格测试,可以直接运行,可以放心下载使用。有任何使用问题欢迎随时与博主沟通,第一时间进行解答! matlab算法,工具源码,适合毕业设计、课程设计作业,所有源码均经过严格测试,可以直接运行,可以放心下载使用。有任何使用问题欢迎随时与博主沟通,第一时间进行解答! matlab算法,工具源码,适合毕业设计、课程设计作业,所有源码均经过严格测试,可以直接运行,可以放心下载使用。有任何使用问题欢迎随时与博主沟通,第一时间进行解答! matlab算法,工具源码,适合毕业设计、课程设计作业,所有源码均经过严格测试,可以直接运行,可以放心下载使用。有任何使用问题欢迎随时与博主沟通,第一时间进行解答! matlab算法,工具源码,适合毕业设计、课程设计作业,所有源码均经过严格测试,可以直接运行,可以放心下载使用。有任何使用问题欢迎随
资源推荐
资源详情
资源评论
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![rar](https://img-home.csdnimg.cn/images/20210720083606.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![rar](https://img-home.csdnimg.cn/images/20210720083606.png)
![rar](https://img-home.csdnimg.cn/images/20210720083606.png)
![7z](https://img-home.csdnimg.cn/images/20210720083312.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
收起资源包目录
![package](https://csdnimg.cn/release/downloadcmsfe/public/img/package.f3fc750b.png)
![folder](https://csdnimg.cn/release/downloadcmsfe/public/img/folder.005fa2e5.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/MP4.png)
共 4 条
- 1
资源评论
![avatar-default](https://csdnimg.cn/release/downloadcmsfe/public/img/lazyLogo2.1882d7f4.png)
![avatar](https://profile-avatar.csdnimg.cn/1ad39e95093044228d03f0d7ce161a82_zy_dreamer.jpg!1)
![avatar-vip](https://csdnimg.cn/release/downloadcmsfe/public/img/user-vip.1c89f3c5.png)
白话机器学习
- 粉丝: 1w+
- 资源: 7681
上传资源 快速赚钱
我的内容管理 展开
我的资源 快来上传第一个资源
我的收益
登录查看自己的收益我的积分 登录查看自己的积分
我的C币 登录后查看C币余额
我的收藏
我的下载
下载帮助
![voice](https://csdnimg.cn/release/downloadcmsfe/public/img/voice.245cc511.png)
![center-task](https://csdnimg.cn/release/downloadcmsfe/public/img/center-task.c2eda91a.png)
最新资源
- Arduino多级菜单库
- JDFinancial.apk
- 使用numpy从零搭建深度神经网络(DNN)
- LoRaWAN协议与IoT应用:端到端的加密传输和身份验证机制,确保数据在传输过程中的保密性和完整性
- 三菱电脑与机台传输软件
- oRaWAN是一种基于LoRa技术的广域网通信协议,适用于物联网(IoT)场景 您可以使用LoRaWAN协议进行设备通信,并通过
- LoRa网络规划与优化:关于如何设计和优化LoRa网络覆盖范围和数据传输效率的指南和文档
- Python爬虫获取小说信息(带实验报告)
- LoRaWAN应用案例:如城市智能化、农业监控等领域的实际应用案例
- LoRa模块示例应用:例如使用Arduino和Semtech LoRa模块进行远程数据采集和传输
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
![feedback](https://img-home.csdnimg.cn/images/20220527035711.png)
![feedback](https://img-home.csdnimg.cn/images/20220527035711.png)
![feedback-tip](https://img-home.csdnimg.cn/images/20220527035111.png)
安全验证
文档复制为VIP权益,开通VIP直接复制
![dialog-icon](https://csdnimg.cn/release/downloadcmsfe/public/img/green-success.6a4acb44.png)