From 26eeb33ae07717a08b2eca3fadbec0c64fbba719 Mon Sep 17 00:00:00 2001 From: yalmansour1998 <120363766+yalmansour1998@users.noreply.github.com> Date: Thu, 11 Apr 2024 12:06:45 +0200 Subject: [PATCH] Add files via upload --- Matlab/test.m | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/Matlab/test.m b/Matlab/test.m index bd07740..fd32287 100644 --- a/Matlab/test.m +++ b/Matlab/test.m @@ -17,7 +17,14 @@ nyq = 0.5 * fs; normal_cutoff = cutoff / nyq; [b, a] = butter(order, normal_cutoff, 'low'); filtered_m_hat = filter(b, a, m_hat); - +g_py="g.csv"; +donnees_python=readtable(g_py); +donnees_python_array = table2array(donnees_python); +x1 = 1:length(donnees_python_array); +x2 = 1:length(filtered_m_hat); +m1=max(donnees_python_array); +m2=max(filtered_m_hat); +l=m1/m2; plot(first_row); title('Graphe de first\_row'); xlabel('Indice'); @@ -32,3 +39,8 @@ plot(filtered_m_hat); title('Graphe de filtered\_m\_hat'); xlabel('Indice'); ylabel('|filtered\_m\_hat|'); +figure +plot(x1,donnees_python_array,x2, l*filtered_m_hat); +title('Graphe de filtered\_m\_hat\_python & filtered\_m\_hat\_matlab'); +xlabel('Indice'); +ylabel('|donnees\_python|');