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 /162/CH1/EX1.1/example11.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 '162/CH1/EX1.1/example11.sce')
-rwxr-xr-x | 162/CH1/EX1.1/example11.sce | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/162/CH1/EX1.1/example11.sce b/162/CH1/EX1.1/example11.sce new file mode 100755 index 000000000..e65433179 --- /dev/null +++ b/162/CH1/EX1.1/example11.sce @@ -0,0 +1,28 @@ +//Example1.1
+clc;
+t=0:0.01:9;
+A=0:4/900:4;
+for i=1:length(t)
+ if t(i)<3 then
+ x(i)=A(i)*t(i);
+ else
+ x(i)=0
+ end
+end
+t1=t+3;
+subplot(2,2,1)
+plot(t1,x);
+xtitle('x(t-3)');
+subplot(2,2,2)
+plot(4*t,x);
+xtitle('x(t/4)');
+subplot(2,2,3)
+plot(t/3,x);
+xtitle('x(3t)');
+subplot(2,2,4)
+t2=-9:0.01:0
+plot(t2,x($:-1:1));
+xtitle('x(-t)');
+figure
+plot(t,x);
+xtitle('x(t)');
\ No newline at end of file |