MATLAB: How to create multi-channel signals using the NCO block in Signal Processing Blockset 6.7(R2008a)

channelmultincoscalarvector

The documentation of NCO block says “The NCO block generates a multi-channel real or complex sinusoidal signal, with independent frequency and phase in each output channel.”
I would like to know how to generate multichannel output with this block as we cannot specify more than one frequency/phase offset (block requires only scalar inputs).

Best Answer

This documentation enhancement has been incorporated in Release 2008b (R2008b). For previous product releases, read below for any possible workarounds:
Using the NCO block of Signal Processing Blockset 6.7 (R2008a), multi-channel signals can be generated by specifying vector inputs to the phase offset and phase increment options in the block properties. These vectors could either be specified in the properties dialog or as input ports with corresponding options set in the properties dialog.
Note that both phase increment and phase offset vector inputs should be of the same length as the NCO block currently does not perform scalar expansion. If this is not followed, an error ensues mentioning that only scalar inputs are accepted.