Moving average and smooth the signals

1 次查看(过去 30 天)
Hi all,
I am dealing with my homework.
In the guide image, after plot square filtered signals, how can I classify the test data and identify those data in individual trials?
Really appreciate for your help
clc;
close all;
clear;
load('ECG_Biometric_Test_Rand.mat');
load('ECG_Biometric_Train.mat');
Fs = 200;
F_nyquist = Fs/2;
ecg1 = ecg_test_rand;
ecg_t1 = ecg(:,12);
N = length(ecg_t1);
N_half = ceil(N/2);
num_bins = [0: N-1];
ecg_spectrum = abs(fft(ecg_t1));
freq_response = num_bins*Fs/N;
plot(freq_response(1:N_half),ecg_spectrum(1:N_half));
[b, a] = butter(3, [0.01 0.2],"bandpass");
h = filter(b,a,ecg);
plot(h.^2)

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Spectral Measurements 的更多信息

产品


版本

R2021b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by