exp 14 - >t = linspace(0,36,27 sample rate 27 Hz>x1 =...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
Untitled 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.5304623 27 Hz SAMPLE RATE
Background image of page 1
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()-->max(abs(x1-x2)) ans = 1.7580001 Page 1...
View Full Document

Ask a homework question - tutors are online