The KasamiSequence
object generates a sequence
from the set of Kasami sequences. The Kasami sequences are a set of
sequences that have good crosscorrelation properties.
To generate a Kasami sequence:
Define and set up your Kasami sequence object. See Construction.
Call step
to generate a Kasami
sequence according to the properties of comm.KasamiSequence
.
The behavior of step
is specific to each object in
the toolbox.
Note:
Starting in R2016b, instead of using the 
H = comm.KasamiSequence
creates a KasamiSequence System object, H
.
This object generates a Kasami sequence.
H = comm.KasamiSequence(
creates
a Kasami sequence generator object, Name
,Value
)H
, with each
specified property set to the specified value. You can specify additional
namevalue pair arguments in any order as (Name1
,Value1
,...,NameN
,ValueN
).

Generator polynomial Specify the polynomial that determines the shift register's
feedback connections. The default is You can specify the generator polynomial as a character
vector or as a binary numeric vector that lists the coefficients
of the polynomial in descending order of powers. The first and last
elements must equal Lastly, you can specify the generator polynomial as a vector
containing the exponents of z for the nonzero terms
of the polynomial in descending order of powers. The last entry must
be 

Initial conditions of shift register Specify the initial values of the shift register as a binary
numeric scalar or as binary numeric vector. The default is When you set this property to a vector value, each element of the vector corresponds to the initial value of the corresponding cell in the shift register. When you set this property to a scalar value, that value specifies the initial conditions of all the cells of the shift register. The scalar, or at least one element of the specified vector, requires a nonzero value for the object to generate a nonzero sequence. 

Sequence index Specify the index to select a Kasami sequence of interest from
the set of possible sequences. The default is There are two classes of Kasami sequences: those obtained from a small set and those obtained from a large set. You choose a Kasami sequence from the small set by setting this property to a numeric, scalar, integer value in the range [0...2^{n/2}–2]. You choose a sequence from the large set by setting this property to a numeric 1$$\times $$2 integer vector [k m] for k in [–2,..., 2^{n}–2], and m in [–1,..., 2^{n/2}–2]. 

Sequence offset from initial time Specify the offset of the Kasami sequence from its starting
point as a numeric, integer scalar value that can be positive or negative.
The default is 

Enable variablesize outputs Set this property to true to enable an additional input to the
step method. The default is false. When you set this property to true,
the enabled input specifies the output size of the Kasami sequence
used for the step. The input value must be less than or equal to the
value of the When you set this property to false, the 

Maximum output size Specify the maximum output size of the Kasami sequence as a positive integer 2element row vector. The second element of the vector must be 1. The default is [10 1]. This property applies when you set the 

Number of output samples per frame Specify the number of Kasami sequence samples that the step
method outputs as a numeric, positive, integer scalar value . The
default value is When you set this property to a value of M,
then the 

Enable generator reset input Set this property to 

Data type of output Specify the output data type as one of 
reset  Reset states of Kasami sequence generator object 
step  Generate a Kasami sequence 
Common to All System Objects  

clone  Create System object with same property values 
getNumInputs  Expected number of inputs to a System object 
getNumOutputs  Expected number of outputs of a System object 
isLocked  Check locked states of a System object (logical) 
release  Allow System object property value changes 
This object implements the algorithm, inputs, and outputs described on the Kasami Sequence 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.