Skip to content
Snippets Groups Projects
Commit 7bd6e764 authored by LexvanGastel's avatar LexvanGastel
Browse files

vraag 7

parent 8c8d0262
No related branches found
No related tags found
No related merge requests found
......@@ -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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment