comm.HadamardCode
Generate Hadamard code
Description
The comm.HadamardCode
System object™ generates a code sequence from a Hadamard matrix, whose rows form an orthogonal
set of codes. When the receiver is synchronized with the transmitter, use orthogonal codes for
spreading signals in communication systems. In this case, the ideal despreading operation
results in complete decorrelation of the codes. For more information, see Algorithms.
To generate a Hadamard codes:
Create the
comm.HadamardCode
object and set its properties.Call the object with arguments, as if it were a function.
To learn more about how System objects work, see What Are System Objects?
Creation
Description
hadamard = comm.HadamardCode
creates a System object that generates a Hadamard code.
hadamard = comm.HadamardCode(
creates a Hadamard code generator object with each specified property set to the specified
value. For example,
Name
=Value
)comm.HadamardCode(Length="128",SamplesPerFrame="10")
outputs the
first ten samples of a length 128 Hadamard code generator.
Properties
Usage
Syntax
Output Arguments
Object Functions
To use an object function, specify the
System object as the first input argument. For
example, to release system resources of a System object named obj
, use
this syntax:
release(obj)
Examples
Algorithms
Extended Capabilities
Version History
Introduced in R2012a