Signal Processing Toolbox Previous page   Next Page

Communications Applications

The toolbox provides three functions for communications simulation.

Operation
Function
Modulation
modulate
Demodulation
demod
Voltage controlled oscillation
vco

Modulation varies the amplitude, phase, or frequency of a carrier signal with reference to a message signal. The modulate function modulates a message signal with a specified modulation method.

The basic syntax for the modulate function is

where:

The table below summarizes the modulation methods provided; see the documentation for modulate, demod, and vco for complete details on each

Method
Description
amdsb-sc or am
Amplitude modulation, double side-band, suppressed carrier
amdsb-tc
Amplitude modulation, double side-band, transmitted carrier
amssb
Amplitude modulation, single side-band
fm
Frequency modulation
pm
Phase modulation
ppm
Pulse position modulation
pwm
Pulse width modulation
qam
Quadrature amplitude modulation
.

If the input x is an array rather than a vector, modulate modulates each column of the array.

To obtain the time vector that modulate uses to compute the modulated signal, specify a second output parameter:

The demod function performs demodulation, that is, it obtains the original message signal from the modulated signal:

The syntax for demod is

demod uses any of the methods shown for modulate, but the syntax for quadrature amplitude demodulation requires two output parameters:

If the input y is an array, demod demodulates all columns.

Try modulating and demodulating a signal. A 50 Hz sine wave sampled at 1000 Hz is

With a carrier frequency of 200 Hz, the modulated and demodulated versions of this signal are

To plot portions of the original, modulated, and demodulated signal:

The voltage controlled oscillator function vco creates a signal that oscillates at a frequency determined by the input vector. The basic syntax for vco is

where fc is the carrier frequency and fs is the sampling frequency.

To scale the frequency modulation range, use

In this case, vco scales the frequency modulation range so values of x on the interval [-1 1] map to oscillations of frequency on [Fmin Fmax].

If the input x is an array, vco produces an array whose columns oscillate according to the columns of x.

See FFT-Based Time-Frequency Analysis for an example using the vco function.


Previous page  Median Filtering Deconvolution Next page

© 1994-2005 The MathWorks, Inc.