System object: comm.KasamiSequence
Generate a Kasami sequence
Y = step(H)
Y = step(H,RESET)
Y = step(H) outputs a frame of the Kasami sequence in column vector Y. Specify the frame length with the SamplesPerFrame property. The Kasami sequence has a period of N = 2n-1, where n is the degree of the generator polynomial that you specify in the Polynomial property.
Y = step(H,RESET) uses RESET as the reset signal when you set the ResetInputPort property to true. The data type of the RESET input must be double precision or logical. RESET can be a scalar value or a column vector with a length equal to the number of samples per frame that you specify in the SamplesPerFrame property. When the RESET input is a non-zero scalar, the object resets to the initial conditions that you specify in the InitialConditions property. It then generates a new output frame. A column vector RESET input allows multiple resets within an output frame. A non-zero value at the i-th element of the vector causes a reset at the i-th output sample time.
Note: H specifies the System object™ on which to run this step method.
The object performs an initialization the first time the step method is executed. This initialization locks nontunable properties and input specifications, such as dimensions, complexity, and data type of the input data. If you change a nontunable property or an input specification, the System object issues an error. To change nontunable properties or inputs, you must first call the release method to unlock the object.