summaryrefslogtreecommitdiff
path: root/135/CH3/EX3.31
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /135/CH3/EX3.31
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 '135/CH3/EX3.31')
-rwxr-xr-x135/CH3/EX3.31/3_31.JPGbin0 -> 23873 bytes
-rwxr-xr-x135/CH3/EX3.31/EX31.sce7
2 files changed, 7 insertions, 0 deletions
diff --git a/135/CH3/EX3.31/3_31.JPG b/135/CH3/EX3.31/3_31.JPG
new file mode 100755
index 000000000..1bc99ed35
--- /dev/null
+++ b/135/CH3/EX3.31/3_31.JPG
Binary files differ
diff --git a/135/CH3/EX3.31/EX31.sce b/135/CH3/EX3.31/EX31.sce
new file mode 100755
index 000000000..d56637e56
--- /dev/null
+++ b/135/CH3/EX3.31/EX31.sce
@@ -0,0 +1,7 @@
+// Example 3.31: Output voltage
+clc, clear
+t=[0:0.1:9*%pi];
+vin=15*squarewave(t)-5; // Input wave in volts
+vo=vin+25; // in volts
+plot2d(t,vo,rect=[0,0,9*%pi,40]);
+xtitle("Output voltage","t","vo"); \ No newline at end of file