Signal Analysis Using MATLAB
Signal Analysis Using MATLAB
Institute of Engineering
(Central Campus, Pulchowk)
Data Communication
EXPERIMENT 1
!"
Data Communication
EXPERIMENT 1
#"
Data Communication
EXPERIMENT 1
$"
Data Communication
EXPERIMENT 1
! !
! !
! !
! !!
Write down MATLAB code and print the result for the following operations:
(a)
(b)
(c)
(d)
(e)
(f)
(g)
(h)
(i)
%"
Data Communication
EXPERIMENT 1
r1 = f + g
b) Dot product
r2 = f g
!
c) Mean
r3 =
d) Average energy
r4 = !
!
!
!
!!! !!!!
!
!!!
!!!!
!!
!!!!!!!!!!!!!"# ! !" ! ! ! !"
!
!"#
!"# !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!"#!!
! ! ! !"
&"
Data Communication
EXPERIMENT 1
"
9) Fourier Series using MATLAB
"
A) Write MATLAB code to generate and plot a square wave g (t) having the
following characteristics:
Frequency = 1 Hz
Amplitude = 5 Volts
DC-bias = -3 Volts
Time Interval = -3 ! t ! 3 Seconds
Label your figure with the appropriate title, x-axis units, and y-axis units.
Now, write MATLAB code to approximate the square wave as a Fourier series
and plot it using m = 1, 5, 10, and 20.
!!
! ! !! !
!
!! !"#!!!!!"#! ! !! !"#!!!!!"#!
!!!
!!!! !"
!
!
!! ! !
!
!
!! ! !
!
!!!! !"#!!!!"#!!"
!
!
!!!! !"#!!!!"#!!"
!
Label your figure with the appropriate title, x-axis units, and y-axis units.
Prepared by: Dinesh Baniya Kshatri
Lecturer, IoE, Central Campus, Pulchowk
'"
Data Communication
EXPERIMENT 1
!! !"#!
!!!
!"#
!"#
! !! !"#!
!
!
!!!! !"
!!
!
!! ! !
!
!
!! ! !
!
!!!! !"#
!"#
!"
!
!!!! !"#
!"#
!"
!
!!
!
!!
Label your figure with the appropriate title, x-axis units, and y-axis units.
"
10) Fourier Transform and Inverse Fourier Transform using MATLAB
"
A) Write MATLAB code to generate and plot a Cosine wave g (t) having the
following characteristics:
"
Frequency = 5 Hz
Amplitude = 19 Volts
Time Interval = 0 ! t ! 3 Seconds
Label your figure with the appropriate title, x-axis units, and y-axis units.
"
)* +,-./-0")"1/2-3,-"4-)56./-0"/5"78,")9/:,"63;5)<"2635;"78,"=/00)5>"
?114*")5>"@</7"78,"-,62<7"35"78,".-,A2,5=B">/0)35C"
"
Prepared by: Dinesh Baniya Kshatri
Lecturer, IoE, Central Campus, Pulchowk
("
Data Communication
EXPERIMENT 1
"
Frequency = 5 Hz
Amplitude = 19 Volts
Time Interval = 0 ! t ! 3 Seconds
Label your figure with the appropriate title, x-axis units, and y-axis units.
"
"
"
)* +,-./-0")"1/2-3,-"4-)56./-0"/5"78,")9/:,"63;5)<"2635;"78,"=/00)5>"
?114*")5>"@</7"78,"-,62<7"35"78,".-,A2,5=B">/0)35C"
"
Label your figure with the appropriate title, x-axis units, and y-axis units.
"
9* E-37,"FG4HGI"=/>,"7/"@,-./-0")5"35:,-6,"1/2-3,-"4-)56./-0"/."78,"
63;5)<"/97)35,>"35"@)-7"?)*"2635;"78,"=/00)5>"?J114*")5>"@</7"78,"-,62<7"
35"78,"730,">/0)35C"
"
Label your figure with the appropriate title, x-axis units, and y-axis units.
D"