BiomedicalSignalProcessing_Homework_1

# BiomedicalSignalProcessing_Homework_1 - Mmtaz DEMRC...

This preview shows pages 1–4. Sign up to view the full content.

Mümtaz DEM İ RC İ 130206001 Biomedical Signal Processing Homework 1 1) ECG Signal sample is attached as an .mat fle 2) function homework1_2 t=0:0.01:5; x1=sin(2*pi*0.3*t); fft_x1=fft(x1); figure;plot(fft_x1); axis 'tight' ; title( 'ftt of the signal' ); figure;plot(abs(fft_x1)); axis 'tight' ; title( 'absolute ftt of the signal' ); end iF the Fourier transForm is directly plotted, we see a meaningless graph.This graph is shown below. ±ourier transForm has the shape that it does because it has complex values.

This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document
3) function homework1_3 t=0:0.01:5; x2=sin(2*pi*0.45*t); fft_x2=fft(x2); subplot(2,1,1);plot(x2); axis 'tight' ; title( 'original signal' ); subplot(2,1,2);plot(abs(fft_x2)); axis 'tight' ; title( 'fft of original signal' ); end
function homework1_4 t=0:0.01:5; x1=sin(2*pi*0.3*t); x2=sin(2*pi*1.45*t); figure; stem(x1, 'k' ); hold on ;stem(x2, 'g' ); title( 'x1 and x2 in the time domain' ); legend( 'x1' , 'x2' ); figure; plot(abs(fft(x1)), 'k' , 'LineWidth' ,2); hold on ;plot(abs(fft(x2)),

This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

### Page1 / 6

BiomedicalSignalProcessing_Homework_1 - Mmtaz DEMRC...

This preview shows document pages 1 - 4. Sign up to view the full document.

View Full Document
Ask a homework question - tutors are online