This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English version of the page.

Note: This page has been translated by MathWorks. Click here to see
To view all translated materials including this page, select Country from the country navigator on the bottom of this page.

step

System object: comm.GoldSequence
Package: comm

Generate a Gold sequence

Syntax

Y = step(H)
Y = step(H,RESET)

Description

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.

Y = step(H) outputs a frame of the Gold sequence in column vector Y. Specify the frame length with the SamplesPerFrame property. The object uses two PN sequence generators to generate a preferred pair of sequences with period N = 2^n-1. Then the object XORs these sequences to produce the output Gold sequence. The value in n is the degree of the generator polynomials that you specify in the FirstPolynomial and SecondPolynomial properties.

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 length equal to the number of samples per frame specified 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 FirstInitialConditions and SecondInitialConditions properties. 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 ith element of the vector causes a reset at the ith output sample time.

Note

obj 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 (MATLAB) 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.