Main Content

wirelessNetworkSimulator.getInstance

Get instance of wirelessNetworkSimulator object

Since R2022b

    Download Required: To use wirelessNetworkSimulator.getInstance, first download the Communications Toolbox Wireless Network Simulation Library add-on.

    Description

    example

    networkSimulator = wirelessNetworkSimulator.getInstance() gets an instance of the wirelessNetworkSimulator object initialized by using the wirelessNetworkSimulator.init() function.

    Examples

    collapse all

    Initialize the wireless network simulator. The wirelessNetworkSimulator.init() function creates a wirelessNetworkSimulator object in the MATLAB® workspace.

    wirelessNetworkSimulator.init();

    Get an instance of the initialized wirelessNetworkSimulator object.

    networkSimulator = wirelessNetworkSimulator.getInstance();

    Output Arguments

    collapse all

    Wireless network simulator, returned as a wirelessNetworkSimulator object.

    Version History

    Introduced in R2022b

    expand all