Main Content

wirelessNetworkSimulator.getInstance

Get instance of wirelessNetworkSimulator object

    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