design a band pass filter with a noisy ecg signal in simulink
조회 수: 3 (최근 30일)
이전 댓글 표시
>> % 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
답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Single-Rate Filters에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!