summaryrefslogtreecommitdiff
path: root/249/CH11/EX11.3/11_03.sce
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /249/CH11/EX11.3/11_03.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 '249/CH11/EX11.3/11_03.sce')
-rwxr-xr-x249/CH11/EX11.3/11_03.sce23
1 files changed, 23 insertions, 0 deletions
diff --git a/249/CH11/EX11.3/11_03.sce b/249/CH11/EX11.3/11_03.sce
new file mode 100755
index 000000000..d611752b8
--- /dev/null
+++ b/249/CH11/EX11.3/11_03.sce
@@ -0,0 +1,23 @@
+clear
+clc
+//From the given graph
+Cin(1)=0;Cin(2)=8;Cin(3)=4;Cin(4)=6;Cin(5)=0;
+E(5)=0;E(6)=0.05;E(7)=0.5;E(8)=0.35;E(9)=0.1;E(10)=0;
+for t=8:14
+sum1=0;
+for p=5:t-1
+ if p>10 |(t-p)>5
+ h=2;
+ else
+sum1=sum1+Cin(t-p)*E(p);
+Cout(t)=sum1;
+end
+end
+end
+t=[1:1:14];
+Cout=Cout';
+t
+Cout
+plot(t,Cout)
+xlabel('t');ylabel('Cout')
+