blob: 3ab5b587ea1b5c0ef0809e8075bc7f2cdedf4a96 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
//determine the nyquist rate
//example 8_1<d>
clc;
clear all;
//x(t)=cos(150*pi*t)sin(100*pi*t)
//x(t)=0.5sin(250*pi*t)*0.5*sin(50*pi*t)
wq=50;
wp=250;
wf=0;
if wp>=wq then
wf=wp;
else
wf=wq;
end
F1=wf/2;
Fs=2*F1;
disp('Nyquist Rate=');
disp(Fs);
|