Sources and Sinks

Input and output signals and sequences

Communications Toolbox™ contains System objects, blocks, and functions to produce generate signal source data and noise to simulate communication links. Communications Toolbox also provides System objects, blocks, and functions to display and analyze the performance of your communication system simulation.


Wireless Waveform GeneratorCreate, impair, visualize, and export modulated waveforms


expand all

randiUniformly distributed pseudorandom integers
randerrGenerate bit error patterns
randsrcGenerate random matrix using prescribed alphabet
commsrc.combinedjitterConstruct combined jitter generator object
commsrc.patternConstruct pattern generator object
commsrc.pnCreate PN sequence generator object
zadoffChuSeqGenerate root Zadoff-Chu sequence
mask2shiftConvert mask vector to shift for shift register configuration
shift2maskConvert shift to mask vector for shift register configuration
wgnGenerate white Gaussian noise samples
biterrNumber of bit errors and bit error rate (BER)
eyediagramGenerate eye diagram
scatterplotGenerate scatter plot
symerrCompute number of symbol errors and symbol error rate


expand all

comm.BarkerCodeGenerate bipolar Barker code
comm.BasebandFileReaderRead baseband signals from file
comm.GoldSequenceGenerate Gold sequence
comm.HadamardCodeGenerate Hadamard code
comm.KasamiSequenceGenerate Kasami sequence
comm.OVSFCodeGenerate OVSF code
comm.PNSequenceGenerate a pseudo-noise (PN) sequence
comm.RBDSWaveformGeneratorGenerate RDS/RBDS waveform
comm.WalshCodeGenerate Walsh code from orthogonal set of codes
comm.BasebandFileWriterWrite baseband signals to file
comm.ConstellationDiagramDisplay constellation diagram for input signals
comm.EyeDiagramDisplay eye diagram of time-domain signals


expand all

Barker Code GeneratorGenerate bipolar Barker Code
Baseband File ReaderRead baseband signals from file
Bernoulli Binary GeneratorGenerate Bernoulli-distributed random binary numbers
Gold Sequence GeneratorGenerate Gold sequence from set of sequences
Hadamard Code GeneratorGenerate Hadamard code from orthogonal set of codes
Kasami Sequence GeneratorGenerate Kasami sequence from set of Kasami sequences
OVSF Code GeneratorGenerate orthogonal variable spreading factor (OVSF) code from set of orthogonal codes
PN Sequence GeneratorGenerate pseudonoise sequence
Poisson Integer GeneratorGenerate Poisson-distributed random integers
Random Integer GeneratorGenerate integers randomly distributed in specified range
Walsh Code GeneratorGenerate Walsh code from orthogonal set of codes
Baseband File WriterWrite baseband signals to file
Constellation DiagramDisplay constellation diagram for input signals
Eye DiagramDisplay eye diagram of time-domain signal


Signal Terminology

This section defines important Communications Toolbox terms related to matrices, vectors, and scalars, as well as frame-based and sample-based processing.

Sources and Sinks

Error statistics and plotting.

Random Noise Generators

You can generate noise for communication system modeling using the MATLAB Function block with a random number generator.

Spreading Sequences

Comparison of spreading sequences for single and multiuser scenarios in single path and multipath environments.

Using Wireless Waveform Generator App

Create, impair, visualize, and export modulated waveforms.

Read Signals From Hardware Devices

Communications Toolbox software can read a signal from external hardware devices using the Communications Toolbox support packages for software-defined radio (SDR).

Export Data to MATLAB

Sending the simulation results to the MATLAB workspace and using MATLAB to analyze the data.

Featured Examples