intdump

Integrate and dump

Syntax

y = intdump(x,nsamp)

Description

y = intdump(x,nsamp) integrates the signal x over a symbol period and outputs one value for that symbol period. A symbol period consists of nsamp samples. If x contains multiple symbols, then the function processes the symbols independently. If x is a matrix with multiple rows, then the function treats each column as a channel and processes the columns independently.

Examples

An example in Combining Pulse Shaping and Filtering with Modulation uses this function in conjunction with modulation.

The code below processes two independent channels, each containing three symbols of data. Each symbol contains four samples.

nsamp = 4; % Number of samples per symbol
ch1 = randint(3*nsamp,1,2,68521); % Random binary channel
ch2 = rectpulse([1 2 3]',nsamp); % Rectangular pulses
x = [ch1 ch2]; % Two-channel signal
y = intdump(x,nsamp)

The output is below. Each column corresponds to one channel, and each row corresponds to one symbol.

y =

    0.5000    1.0000
    0.5000    2.0000
    1.0000    3.0000

See Also

rectpulse


© 1994-2005 The MathWorks, Inc.