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
Guy Rouleau (2021). Simulink-Virus-Simulator (https://github.com/guirlo/Simulink-Virus-Simulator/releases/tag/V1.01), GitHub. Retrieved .
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Create scripts with code, output, and formatted text in a single executable document.
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.