From c6c47fecb493147008c08939124465399eb5c7f6 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 18:04:46 +0000 Subject: [PATCH] Add titles --- SIRC.m | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/SIRC.m b/SIRC.m index c5cc97b..ba0d994 100644 --- a/SIRC.m +++ b/SIRC.m @@ -1,5 +1,5 @@ %% System initalization -% Number of population +% Population N = 1000; % Initial number of infected individuals I0 = 10; @@ -25,7 +25,10 @@ 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) +plot(t, y); +xlabel('Time(days)'); +ylabel('Number of individuals'); +legend('S', 'I', 'R', 'C'); %% Add noise -- GitLab