| Signal Processing Toolbox |    | 
Demodulation for communications simulation
Syntax
x=demod(y,fc,fs,'method') x=demod(y,fc,fs,'method',opt) x=demod(y,fc,fs,'pwm','centered') [x1,x2]=demod(y,fc,fs,'qam')
Description
demod performs demodulation, that is, it obtains the original signal from a modulated version of the signal. demod undoes the operation performed by modulate.
x = demod(y,fc,fs,' andmethod')
x = demod(y,fc,fs,' demodulate the real carrier signal method',opt)
y with a carrier frequency fc and sampling frequency fs, using one of the options listed below for method. (Note that some methods accept an option, opt.)
| Method | Description | 
| amdsb-scor am | Amplitude demodulation, double sideband, suppressed carrier. Multipliesyby a sinusoid of frequencyfcand applies a fifth-order Butterworth lowpass filter usingfiltfilt. | 
| amdsb-tc | Amplitude demodulation, double sideband, transmitted carrier. Multiplies yby a sinusoid of frequencyfc, and applies a fifth-order Butterworth lowpass filter usingfiltfilt.If you specify opt,demodsubtracts scalaroptfromx. The default value foroptis 0. | 
| amssb | Amplitude demodulation, single sideband. Multiplies yby a sinusoid of frequencyfcand applies a fifth-order Butterworth lowpass filter usingfiltfilt. | 
| fm | Frequency demodulation. Demodulates the FM waveform by modulating the Hilbert transform of yby a complex exponential of frequency-fcHz and obtains the instantaneous frequency of the result. | 
| pm | Phase demodulation. Demodulates the PM waveform by modulating the Hilbert transform of yby a complex exponential of frequency -fcHz and obtains the instantaneous phase of the result. | 
| ppm | Pulse-position demodulation. Finds the pulse positions of a pulse-position modulated signal y. For correct demodulation, the pulses cannot overlap.xis lengthlength(t)*fc/fs. | 
| pwm | Pulse-width demodulation. Finds the pulse widths of a pulse-width modulated signal y.demodreturns inxa vector whose elements specify the width of each pulse in fractions of a period. The pulses inyshould start at the beginning of each carrier period, that is, they should be left justified. | 
| qam | Quadrature amplitude demodulation. [x1,x2] = demod(y,fc,fs, 'qam') multipliesyby a cosine and a sine of frequencyfcand applies a fifth-order Butterworth lowpass filter usingfiltfilt. | 
The default method is 'am'. In all cases except 'ppm' and 'pwm', x is the same size as y.
If y is a matrix, demod demodulates its columns.
x = demod(y,fc,fs,'pwm','centered')
 x is length length(y)*fc/fs.
See Also
modulate, vco, fskdemod, genqamdemod, mskdemod, pamdemod, pmdemod,  qamdemod
|   | deconv | dfilt |  | 
© 1994-2005 The MathWorks, Inc.