This is machine translation

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

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.


System object: dsp.NCO
Package: dsp

Generate multichannel real or complex sinusoidal signal using NCO (Numerically Controlled Oscillator)


Y = step(H,INC)
Y = step(H)
Y = step(H,OFFSET)
Y = step(H,INC,OFFSET)
[Y,COSINE] = step(H,___)
[Y,QERR] = step(H,___)


    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,INC) returns a sinusoidal signal, Y , generated by the NCO with the specified phase increment, INC. INC must be a built-in integer or a fi object comprising either a scalar or a row vector, where each row element corresponds to a separate channel.

Y = step(H) when the PhaseIncrementSource and PhaseOffsetSource properties are both Property, returns a sinusoidal signal, Y.

Y = step(H,OFFSET) returns a sinusoidal signal, Y, with phase offset, OFFSET, when the PhaseOffsetSource property is Input port. OFFSET must be a built-in integer or a fi object. The number of rows of OFFSET determines the number of samples per frame of the output signal. The number of columns of the OFFSET determines the number of channels of the output signal.

Y = step(H,INC,OFFSET) returns a sinusoidal signal, Y, with phase increment, INC, and phase offset, OFFSET, when the PhaseIncrementSource and the PhaseOffsetSource properties are both Input port. INC and OFFSET must both be row vectors of the same length, where the length determines the number of channels in the output signal.

[Y,COSINE] = step(H,___) returns a sinusoidal signal, Y, and a cosinusoidal signal, COSINE, when the Waveform property is set to Sine and cosine. This syntax can include any of the input arguments in previous syntaxes.

[Y,QERR] = step(H,___)when the PhaseQuantization and the PhaseQuantizationErrorOutputPort properties are both true, returns a sinusoidal signal, Y, and output quantization error, QERR.

    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.

Was this topic helpful?