diff options
author | priyanka | 2015-06-24 15:03:17 +0530 |
---|---|---|
committer | priyanka | 2015-06-24 15:03:17 +0530 |
commit | b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch) | |
tree | ab291cffc65280e58ac82470ba63fbcca7805165 /67/CH6/EX6.2/example62.sce | |
download | Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2 Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip |
initial commit / add all books
Diffstat (limited to '67/CH6/EX6.2/example62.sce')
-rwxr-xr-x | 67/CH6/EX6.2/example62.sce | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/67/CH6/EX6.2/example62.sce b/67/CH6/EX6.2/example62.sce new file mode 100755 index 000000000..1d4dc07ee --- /dev/null +++ b/67/CH6/EX6.2/example62.sce @@ -0,0 +1,15 @@ +//Example 6.2
+clc;
+disp('x(t)=(1/2%pi)cos(4000%pi*t)cos(1000%pi*t)');
+w1=5000*%pi;
+w2=3000*%pi;
+f1=w1/(2*%pi);
+f2=w2/(2*%pi);
+if f1>f2 then
+ nyquist_rate=2*f1;
+else
+ nyquist_rate=2*f2;
+end
+nyquist_interval=1/nyquist_rate;
+disp(nyquist_rate,'Nyquist rate=');
+disp(nyquist_interval,'Nyquist interval in seconds');
\ No newline at end of file |