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 file 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. Fourier transform has the shape that it does because it has complex values. 3) function homework1_3

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

View Full Document
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 4) function homework1_4 t=0:0.01:5;
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.

## This note was uploaded on 04/06/2010 for the course EE EE432 taught by Professor Ss during the Spring '10 term at Izmir Institute of Technology.

### 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