summaryrefslogtreecommitdiff
path: root/162/CH1/EX1.3.a/example13a.sce
blob: ce46235f01d622f09856cc26e1197f018b31be15 (plain)
1
2
3
4
5
6
7
8
9
10
//Example 1.3a
//Find whether the the given signal is energy or power signal
clc;
A=0.5;
phi=0;
t=0:0.001:10;
y=A*sin(2*%pi*t+phi);
P=(integrate('A^2*(sin(2*%pi*t))^2','t',0,2*%pi))/(2*%pi);
disp(P,'Power of the signal is');
disp('Since the power of the given signal is finite so we can say that this signal is a power signal');