Communications Toolbox    

Representing Analog Signals

To perform baseband modulation of an analog signal using this toolbox, start with a real message signal and a sampling rate Fs in hertz. For modulation techniques other than quadrature amplitude modulation (QAM), represent the signal using a vector x, the entries of which give the signal's values in time increments of 1/Fs. Baseband modulation (using a technique other than QAM) produces a complex vector.

For example, if t measures time in seconds, then the vector x below is the result of sampling a frequency-one sine wave 100 times per second for 2 seconds. The vector y represents the modulated signal. The output shows that y is complex.

Baseband Modulated Signals Defined

This section explains the connection between this complex vector y and the real signal that you might expect to get after modulating a real signal. If the modulated signal has the waveform

where fc is the carrier frequency and is the carrier signal's initial phase, then a baseband simulation recognizes that this equals the real part of

and models only the part inside the square brackets. Here j is the square root of -1. The complex vector y is a sampling of the complex signal

Changes for QAM

The case for quadrature amplitude modulation (QAM) is similar, except that the message signal has in-phase and quadrature components. Represent the signal using a matrix x that has an even number of columns. The odd-indexed columns represent in-phase components of the signal and the even-indexed columns represent quadrature components. If the message signal is a 2n-by-m matrix, then the modulated signal is an n-by-m matrix. As in the other methods, baseband modulation turns a real message signal into a complex modulated signal.

For example, the code below implements QAM on a set of sinusoidal input signals.

The output below shows the sizes and types of x and y.


  Modulation Terminology Simple Analog Modulation Example