Skip to content
Snippets Groups Projects
Commit 9ceb0184 authored by LexvanGastel's avatar LexvanGastel
Browse files

vraag8

parent 7bd6e764
Branches
No related tags found
No related merge requests found
......@@ -66,5 +66,12 @@ class SignalProcessing:
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
sampling_rate = emg_data['sampling_rate'][0][0][0]
data = emg_data['data'][0][0]
num_samples = data.shape[1]
duration = num_samples / sampling_rate
print(f"Sampling frequentie: {sampling_rate} Hz")
print(f"Aantal samples: {num_samples}")
print(f"Lengte van de data: {duration}")
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment