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 /2294/CH1/EX1.13/EX1_13.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 '2294/CH1/EX1.13/EX1_13.sce')
-rwxr-xr-x | 2294/CH1/EX1.13/EX1_13.sce | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/2294/CH1/EX1.13/EX1_13.sce b/2294/CH1/EX1.13/EX1_13.sce new file mode 100755 index 000000000..861169ea1 --- /dev/null +++ b/2294/CH1/EX1.13/EX1_13.sce @@ -0,0 +1,38 @@ +//Example 1.13<i>
+//Check whether the given signal is periodic or not
+clc;
+t=-10:.01:10;
+y=2*cos(10*t+1)-sin(4*t-1);
+subplot(221)
+plot(t,y);
+disp('(a) The following signal is periodic with period %pi' );
+//Example 1.13<ii>
+//Show whether the given signal is periodic or not
+clc;
+t=-1:.01:1;
+x=cos(60*%pi*t)+sin(50*%pi*t);
+subplot(222)
+plot(t,x);
+disp('(b)Ther following figure shows that the given signal is periodic with the following period');
+//Example1.13<iv>
+//Check whether the given signal is periodic or not
+clc;
+t=-10:0.01:10;
+x=3*cos(4*t)+2*sin(%pi*t);
+subplot(223)
+plot(t,x);
+disp('(c)The signal is not periodic since ratio of two time periods is %pi/4 which is not rational number');
+//Example 1.13<V>
+//Check whether the given signal is periodic or not
+clc;
+t=0:10;
+for i=1:length(t)
+ u(i)=1;
+end
+x=u(i)-(1/2);
+subplot(224)
+plot(t,x);
+disp('(d)The signal is not periodic as seen from figure');
+
+disp('In the figure we have the plots of part (a) - (d) in clockwise order strating from the top left')
+
|