summaryrefslogtreecommitdiff
path: root/52/CH1/EX1.5.d/Example1_5_d.sce
blob: 10dd7274a67fd5e9724659a5f7e0fc4b2e1c507c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
//Example 1.5 (d)
//To Determine Whether Given Signal is Periodic or not
clear;
clc ;
close ;
t=0:0.01:50;
x1=cos(%pi*t/3)+cos(3*%pi*t/4);
subplot(1,2,1);
plot(t,x1);
xlabel('t');
ylabel('x(t)');
title('CONTINUOUS TIME PLOT');
n=0:0.2:50;
x2=cos(%pi*n/3)+cos(3*%pi*n/4);
subplot(1,2,2);
plot2d3(n,x2);
xlabel('n');
ylabel('x(n)');
title('DISCRETE TIME PLOT');
//Hence Given Signal is Periodic with N=24