From e1ed5bc0fcc4d95f267051526c3523a4649bdf55 Mon Sep 17 00:00:00 2001 From: yalmansour1998 <120363766+yalmansour1998@users.noreply.github.com> Date: Wed, 10 Apr 2024 13:07:46 +0200 Subject: [PATCH] Add files via upload --- test.m | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 test.m diff --git a/test.m b/test.m new file mode 100644 index 0000000..bd07740 --- /dev/null +++ b/test.m @@ -0,0 +1,34 @@ +clc +clear all +close all + +fichier = 'Dataset\Shear_Wave_Rot00_CSV_Data\Shear_x001-x101_y010_Rot00.csv'; + +donnees = readtable(fichier); + +first_row = table2array(donnees(1,:)); + +m_hat = abs(hilbert(first_row)); +%filtre passe bas +fs=600.0; +cutoff=3.667; +order=5; +nyq = 0.5 * fs; +normal_cutoff = cutoff / nyq; +[b, a] = butter(order, normal_cutoff, 'low'); +filtered_m_hat = filter(b, a, m_hat); + +plot(first_row); +title('Graphe de first\_row'); +xlabel('Indice'); +ylabel('|first\_row|'); +figure +plot(m_hat); +title('Graphe de m\_hat'); +xlabel('Indice'); +ylabel('|m\_hat|'); +figure +plot(filtered_m_hat); +title('Graphe de filtered\_m\_hat'); +xlabel('Indice'); +ylabel('|filtered\_m\_hat|');