summaryrefslogtreecommitdiff
path: root/67/CH6/EX6.1/example61.sce
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /67/CH6/EX6.1/example61.sce
downloadScilab-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.1/example61.sce')
-rwxr-xr-x67/CH6/EX6.1/example61.sce22
1 files changed, 22 insertions, 0 deletions
diff --git a/67/CH6/EX6.1/example61.sce b/67/CH6/EX6.1/example61.sce
new file mode 100755
index 000000000..5db3959ff
--- /dev/null
+++ b/67/CH6/EX6.1/example61.sce
@@ -0,0 +1,22 @@
+//Example 6.1
+clc;
+disp('x(t)=3cos(50%pi*t)+10sin(300%pi*t)-cos(100%pi*t)');
+w1=50*%pi;
+w2=300*%pi;
+w3=100*%pi;
+f1=w1/(2*%pi);
+f2=w2/(2*%pi);
+f3=w3/(2*%pi);
+if f1>f2 then
+ if f1>f3 then
+ disp(2*f1,'Nyquist rate=');
+ else
+ disp(2*f3,'Nyquist rate=');
+ end
+else
+ if f2>f3 then
+ disp(2*f2,'Nyquist rate=');
+ else
+ disp(2*f3,'Nyquist rate=');
+ end
+end \ No newline at end of file