File Exchange

image thumbnail

Simulink-Virus-Simulator

version 1.0 (6.32 MB) by Guy Rouleau
This project simulates an exponential spread similar to the spread of covid-19.

7 Downloads

Updated 30 Apr 2020

GitHub view license on GitHub

This project simulates an exponential spread similar to the spread of covid-19.

You will find 3 project shortcuts:
- A single simulation with animation
- A MATLAB App that can be deployed using Simulink Compiler
- A design study running multiple simulations in parallel using parsim

See this blog post for more details:

https://blogs.mathworks.com/simulink/2020/03/23/covid-19-simulating-exponential-spread-in-simulink

Cite As

Guy Rouleau (2020). Simulink-Virus-Simulator (https://github.com/guirlo/Simulink-Virus-Simulator/releases/tag/v1.0), GitHub. Retrieved .

Comments and Ratings (1)

smsinks

Hi, Thank you for the code.

Running your code gives off the following error message:

Error using runSim (line 37)
Rapid Accelerator specific parameters are not supported in other modes

Error in virusSpread/SimulateButtonPushed (line 197)
out = runSim(app.AgentSizeSlider.Value*0.025,...

Error using matlab.ui.control.internal.controller.ComponentController/executeUserCallback (line 382)
Error while evaluating Button PrivateButtonPushedFcn.

MATLAB Release Compatibility
Created with R2020a
Compatible with R2020a and later releases
Platform Compatibility
Windows macOS Linux
Tags Add Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!