Contents

legacychannelsim

Toggles random number generation mode for channel objects

Syntax

b = legacychannelsim
legacychannelsim(true)
legacychannelsim(false)
oldmode = legacychannelsim(newmode)

Description

b = legacychannelsim returns FALSE if the code you are running uses the R2009b (or later) version of the random number generator for rayleighchan or ricianchan. (By default, these use the 2009b random number generator.) It returns TRUE if pre-R2009b versions are used. See Version 4.4. (R2009b) Communications System Toolbox™ Release Notes for more information.

legacychannelsim(true) reverts the random number generation mode for channel objects to pre-2009b version.

    Note:   legacychannelsim(true) will support the reset(chan,randstate) functionality.

legacychannelsim(false) sets the random number generation mode for channel objects to 2009b and later versions.

oldmode = legacychannelsim(newmode) sets the random number generation mode for channel objects to NEWMODE and returns the previous mode, OLDMODE.

Was this topic helpful?