From 7bd6e764ca5735e9ec9eb9b99cb4488c3436b3dd Mon Sep 17 00:00:00 2001 From: LexvanGastel <l.vangastel@studen.utwente.nl> Date: Tue, 1 Apr 2025 11:16:12 +0200 Subject: [PATCH] vraag 7 --- main.py | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/main.py b/main.py index f465af2..745e920 100644 --- a/main.py +++ b/main.py @@ -20,6 +20,8 @@ def load_emg_data(file_path): for idx, name in enumerate(channel_names, start=1): print(f"{idx-1}. {name}") + + return channel_names @@ -30,7 +32,7 @@ chosen_muscles = { 'rectus_fomoris': 0, 'tibialis_anterior': 7 } -print(f"Gekozen spieren: {chosen_muscles}") +#print(f"Gekozen spieren: {chosen_muscles}") class DataRetrieval: def __init__(self, file_path): @@ -60,4 +62,9 @@ class SignalProcessing: #methode pass -print(dir(scipy.signal)) +#print(dir(scipy.signal)) +mat_data = scipy.io.loadmat('emg_data_walking.mat') +emg_data = mat_data['emg_data_walking'] + +fs = emg_data['sampling_rate'][0][0] +print(f"Sampling frequentie: {fs} Hz") \ No newline at end of file -- GitLab