summaryrefslogtreecommitdiff
path: root/2528/CH2
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /2528/CH2
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 '2528/CH2')
-rwxr-xr-x2528/CH2/EX2.2/Ex2_2.sce21
1 files changed, 21 insertions, 0 deletions
diff --git a/2528/CH2/EX2.2/Ex2_2.sce b/2528/CH2/EX2.2/Ex2_2.sce
new file mode 100755
index 000000000..adc2015ca
--- /dev/null
+++ b/2528/CH2/EX2.2/Ex2_2.sce
@@ -0,0 +1,21 @@
+//chapter 2
+//figure 2.13
+//frequency counter
+
+clc;clear;
+t=(0:0.1:100)';
+
+k = input('Enter the reference voltage between 0 to 0.8=');
+
+
+f=0.1;
+x3=1*sin(2*f*t);
+
+x4=squarewave(2*f*t-k,50-10*k*%pi)
+figure;
+
+plot2d1(t,x3);
+plot2d1(t,x4);
+xlabel('time n--->');
+ylabel('amplitude--->');
+title('squre wave at cutt reference voltage');