From f35ea80659b6a49d1bb2ce1d7d002583f3f40947 Mon Sep 17 00:00:00 2001 From: prashantsinalkar Date: Tue, 10 Oct 2017 12:38:01 +0530 Subject: updated the code --- 2294/CH1/EX1.13/EX1_13.sce | 76 +++++++++++++++++++++++----------------------- 1 file changed, 38 insertions(+), 38 deletions(-) (limited to '2294') 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 -//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 -//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 -//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 -//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 +//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 +//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 +//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 +//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 -- cgit