From f7484fc8b42167aace05f8e4f3e833e434cac9f5 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Rivny=C3=A1k=20T=C3=ADmea?= <rivnyak.timea@hallgato.ppke.hu>
Date: Tue, 1 Jun 2021 17:59:16 +0000
Subject: [PATCH] Initialization of SIRC system

---
 SIRC.m | 33 +++++++++++++++++++++++++++++++++
 1 file changed, 33 insertions(+)
 create mode 100644 SIRC.m

diff --git a/SIRC.m b/SIRC.m
new file mode 100644
index 0000000..c5cc97b
--- /dev/null
+++ b/SIRC.m
@@ -0,0 +1,33 @@
+%% System initalization
+% Number of population
+N = 1000;
+% Initial number of infected individuals
+I0 = 10;
+% Initial number of recovered individuals
+R0 = 0;
+% Initial number of carrier individuals
+C0 = 0;
+% Everyone else is susceptible
+S0 = N - I0 - R0 - C0;
+% Initial parameteres
+nu = 14;
+mu = 0.015;
+epsilon = 1.2;
+beta = 0.0002;
+gamma = 0.05;
+Gamma = 0.03;
+q = 0.8;
+
+time = 200;
+%t = linspace(0, time, time);
+
+y0 = [S0, I0, R0, C0];
+[t, y] = ode45(@(t, y) deriv(y, nu, mu, epsilon, beta, gamma, Gamma, q), [0 time], y0);
+
+figure(1)
+plot(t, y)
+
+
+%% Add noise
+
+
-- 
GitLab