You are on page 1of 5

Simulink in MATLAB

Lab No 15
Name: Roll No:
Instructor: Engr.Salman Date:

Objective:
To study amplitude modulation in MATLAB via Simulink

Apparatus:
MATLAB Software

Theory:
MATLABs Simulink is a powerful modeling tool capable of simulating complex digital
communications
systems under realistic conditions. It includes prepackaged blocks that encompass
complete modulator,
demodulator, coder, and decoder systems. There are also basic building blocks which can
be combined
to produce custom communications systems. Along with Simulinks basic blocks, there are
blocksets for
both communications and digital signal processing. To allow the testing and debugging of
systems,
there are a number of signal sinks which provide views of the signal in the time or
frequency domain.
Blocks to analyze the performance of a system are provided along with realistic channels
which model
impairments, such as noise and multipath distortion.
A key point to remember is that Simulink is a sampled, discrete time system. This has
implications for
how fast a signal may change.
MATLAB itself is an extensive mathematics tool that facilitates the manipulation of vectors
and matrices
and the calculation of complex equations using scalars, vectors and matrices. It possesses
a number of
tools for the plotting of data, including two and three dimensional graphs. There is an
exhaustive set of
functions which provide analytical tools like the Fourier Transform, Error and
Complimentary Error (or
Q) Functions.
The purpose of this experiment is to acquaint the student with Simulink and provide a
basic review of
MATLAB.
Procedure:
Select new > model
Go to library browser and search the required ones.
For amplitude modulation (DSB-FC):
o Search a sin wave , scope, add and product
o Change the sampling rate and set frequency to differentiate carrier and message signal.
o Connect it using the DSB_FC method
o Run the file and save output.

Output:

For amplitude modulation (DSB_SC):


o Search a sin wave , scope and product
o Change the sampling rate and set frequency to differentiate carrier and message signal.
o Connect it using coherent detection (DSB-SC)
o Run the file and save output.

Output:

Frequency modulation:
Procedure:
o Search the given data by their names
o Change the sampling rate and set frequency.
o Take the output of frequency modulation at the output
o Connect the searched elements accordingly
o Use demodulation technique
o Run the file and save output of frequency modulation and demodulation
Output:
Modulation:
Demodulation:

Conclusion:
____________________________________________________________________________________

____________________________________________________________________________________

____________________________________________________________________________________

____________________________________________________________________________________

____________________________________________________________________________________

_________________________________________________________________

You might also like