Time Domain Representation of Continuous and Discrete Signals
75
disp(energyfodd)
disp(‘ (in joules)’)
disp(‘*********************************************’)
disp(‘*********************************************’)
plot(t,check);
title(‘[feven(t) + fodd(t)] vs. t )’);
axis([-10 10 -5 15]);xlabel(‘time’);
ylabel(‘Amplitude [feven(t) + fodd(t)]’)
Back in the command window the script fi le even_odd is executed and the results are
shown as follows and in Figures 1.61 and 1.62.
>> even _ odd
*************************************************
************** ENERGY ANALYSIS *****************
*************************************************
The energy of f(t) =
838.3500
The energy of feven(t) =
796.6750
The energy of fodd(t) =
41.6750
(in joules)
*************************************************
*************************************************
FIGURE 1.61
Plots of even and odd parts of f(t) of Example 1.14.
10
5
0
−5
−10
10
5
0
−5
−10
−8
−6
−4
−2
0
2
4
6
8
10
Amplitude [f(t)]
Amplitude [feven(t)]
Amplitude [fodd(t)]
f(t) versus t
feven(t) versus t
time
−8
−6
−4
−2
0
2
4
6
8
1 0
fodd(t) versus t
5
0
−5
−10
−8
−6
−4
−2
0
2
4
6
8
1 0
time
time
CRC_47760_CH001.indd 75
CRC_47760_CH001.indd 75
7/25/2008 4:16:25 PM
7/25/2008 4:16:25 PM
75
disp(energyfodd)
disp(‘ (in joules)’)
disp(‘*********************************************’)
disp(‘*********************************************’)
plot(t,check);
title(‘[feven(t) + fodd(t)] vs. t )’);
axis([-10 10 -5 15]);xlabel(‘time’);
ylabel(‘Amplitude [feven(t) + fodd(t)]’)
Back in the command window the script fi le even_odd is executed and the results are
shown as follows and in Figures 1.61 and 1.62.
>> even _ odd
*************************************************
************** ENERGY ANALYSIS *****************
*************************************************
The energy of f(t) =
838.3500
The energy of feven(t) =
796.6750
The energy of fodd(t) =
41.6750
(in joules)
*************************************************
*************************************************
FIGURE 1.61
Plots of even and odd parts of f(t) of Example 1.14.
10
5
0
−5
−10
10
5
0
−5
−10
−8
−6
−4
−2
0
2
4
6
8
10
Amplitude [f(t)]
Amplitude [feven(t)]
Amplitude [fodd(t)]
f(t) versus t
feven(t) versus t
time
−8
−6
−4
−2
0
2
4
6
8
1 0
fodd(t) versus t
5
0
−5
−10
−8
−6
−4
−2
0
2
4
6
8
1 0
time
time
CRC_47760_CH001.indd 75
CRC_47760_CH001.indd 75
7/25/2008 4:16:25 PM
7/25/2008 4:16:25 PM
