scilab code

scilab code - >t = linspace(0,36,27 sample rate 27...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
Sheet1 Page 1 23 Hz SAMPLE RATE -->t = linspace(0,96,23) // sample rate 23 Hz -->x1 = sin(2*%pi*25*t) // 25 Hz sinusoid -->subplot(2,1,1) -->plot2d(t,x1) -->xtitle('25 Hz Sinusoid, Sample Rate 23 Hz', 't (s)', '') -->xgrid() -->x2 = sin(2*%pi*2*t) // 2 Hz sinusoid -->subplot(2,1,2) -->plot2d(t,x2) -->xtitle('2 Hz Sinusoid, Sample Rate 23 Hz', 't (s)', '') -->xgrid() -->max(abs(x1-x2)) ans = 1.53 27 Hz SAMPLE RATE
Background image of page 1

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

View Full DocumentRight Arrow Icon
Background image of page 2
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: -->t = linspace(0,36,27) // sample rate 27 Hz-->x1 = sin(2*%pi*25*t) // 25 Hz sinusoid-->subplot(2,1,1)-->plot2d(t,x1)-->xtitle('25 Hz Sinusoid, Sample Rate 27 Hz', 't (s)', '')-->xgrid()-->x2 = sin(2*%pi*2*t) // 2 Hz sinusoid-->subplot(2,1,2)-->plot2d(t,x2)-->xtitle('2 Hz Sinusoid, Sample Rate 27 Hz', 't (s)', '')-->xgrid() Sheet1 Page 2-->max(abs(x1-x2)) ans = 1.76...
View Full Document

This note was uploaded on 08/13/2010 for the course EE EE 328 taught by Professor Breiteach during the Spring '10 term at Cal Poly.

Page1 / 2

scilab code - >t = linspace(0,36,27 sample rate 27...

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

View Full Document Right Arrow Icon
Ask a homework question - tutors are online