Generate Walsh code from orthogonal set of codes
The WalshCode
object generates a Walsh code
from an orthogonal set of codes.
To generate a Walsh code:
Define and set up your Walsh code object. See Construction.
Call step
to encode the input
signal according to the properties of comm.WalshCode
.
The behavior of step
is specific to each object in
the toolbox.
Note
Starting in R2016b, instead of using the step
method
to perform the operation defined by the System object™, you can
call the object with arguments, as if it were a function. For example, y
= step(obj)
and y = obj()
perform equivalent
operations.
H = comm.WalshCode
creates a Walsh code
generator System object, H
. This object generates
a Walsh code from a set of orthogonal codes.
H = comm.WalshCode(
creates
a Walsh code generator object, Name
,Value
)H
, with each specified
property set to the specified value. You can specify additional name-value
pair arguments in any order as (Name1
,Value1
,...,NameN
,ValueN
).
|
Length of generated code Specify the length of the generated code as a numeric, integer
scalar value that is a power of two. The default is |
|
Index of code of interest Specify the index of the desired code from the available set of codes as a numeric, integer
scalar value in the range |
|
Number of output samples per frame Specify the number of Walsh code samples that the step method outputs as a numeric, positive,
integer scalar value . The default is |
|
Data type of output Specify the output data type as |
reset | Reset states of Walsh code generator object |
step | Generate Walsh code from orthogonal set of codes |
Common to All System Objects | |
---|---|
release | Allow System object property value changes |
This object implements the algorithm, inputs, and outputs described on the Walsh Code Generator block reference page. The object properties correspond to the block parameters, except:
The object does not have a property to select frame based outputs.
The object does not have a property that corresponds to the Sample time parameter.