design a band pass filter with a noisy ecg signal in simulink
3 views (last 30 days)
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
0 Comments
Answers (0)
See Also
Categories
Find more on Single-Rate Filters 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!