design a band pass filter with a noisy ecg signal in simulink

3 visualizzazioni (ultimi 30 giorni)
>> % Sampling fs = 1000; Ts = 1/fs;
% Time vector t = 1:Ts:10-Ts;
% Signal f = 1; % Frequency [Hz] a = 1; % Amplitude signal = sin(2*pi.*t.*f); % Sample sinusoidal signal. Your ECG signal goes here.
% Noise fNoise = 50; % Frequency [Hz] aNoise = 0.25; % Amplitude noise = aNoise*sin(2*pi.*t.*fNoise);
% Signal + Noise signalNoise = signal + noise;
% Plots figure(); subplot(3,1,1); plot(t, signal); xlabel('Time [s]'); ylabel('Amplitude'); title('Original signal');
subplot(3,1,2); plot(t, noise); xlabel('Time [s]'); ylabel('Amplitude'); title('Noise');
subplot(3,1,3); plot(t, signalNoise); xlabel('Time [s]'); ylabel('Amplitude'); title('Original signal + Noise');
i got this matlab program in mathworks.com but i want to know can i use this to simulate a noisy ecg signal in simulink pl help me

Risposte (0)

Community Treasure Hunt

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

Start Hunting!

Translated by