design a band pass filter with a noisy ecg signal in simulink
Show older comments
>> % 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
Answers (0)
Categories
Find more on Digital Filter Analysis in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!