diff options
author | prashantsinalkar | 2017-10-10 12:38:01 +0530 |
---|---|---|
committer | prashantsinalkar | 2017-10-10 12:38:01 +0530 |
commit | f35ea80659b6a49d1bb2ce1d7d002583f3f40947 (patch) | |
tree | eb72842d800ac1233e9d890e020eac5fd41b0b1b /2294 | |
parent | 7f60ea012dd2524dae921a2a35adbf7ef21f2bb6 (diff) | |
download | Scilab-TBC-Uploads-f35ea80659b6a49d1bb2ce1d7d002583f3f40947.tar.gz Scilab-TBC-Uploads-f35ea80659b6a49d1bb2ce1d7d002583f3f40947.tar.bz2 Scilab-TBC-Uploads-f35ea80659b6a49d1bb2ce1d7d002583f3f40947.zip |
updated the code
Diffstat (limited to '2294')
-rwxr-xr-x | 2294/CH1/EX1.13/EX1_13.sce | 76 |
1 files changed, 38 insertions, 38 deletions
diff --git a/2294/CH1/EX1.13/EX1_13.sce b/2294/CH1/EX1.13/EX1_13.sce index 861169ea1..67cda22b6 100755 --- a/2294/CH1/EX1.13/EX1_13.sce +++ b/2294/CH1/EX1.13/EX1_13.sce @@ -1,38 +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')
-
+//Example 1.13<i> +//Check whether the given signal is periodic or not +clc; +t1=-10:.01:10; +y1=2*cos(10*t1+1)-sin(4*t1-1); +subplot(221) +plot(t1,y1); +disp('(a) The following signal is periodic with period %pi' ); +//Example 1.13<ii> +//Show whether the given signal is periodic or not +clc; +t2=-1:.01:1; +x2=cos(60*%pi*t2)+sin(50*%pi*t2); +subplot(222) +plot(t2,x2); +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; +t3=-10:0.01:10; +x3=3*cos(4*t3)+2*sin(%pi*t3); +subplot(223) +plot(t3,x3); +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; + x(i)=u(i)-(1/2); +end + +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')
\ No newline at end of file |