WLAN Toolbox™ features enable you to create and visualize an IEEE® 802.11ax™ multinode residential scenario with any number of floors and rooms. Using this example, you can:
Create and configure a multinode 802.11ax residential scenario consisting of two floors, one access point (AP), and two stations (STAs) per room.
Assign random positions to the STAs and AP.
Visualize the residential scenario in 3-D.
To access the helper files that this example uses, add the
mlWLANSystemSimulation folder to the MATLAB path.
Create a simulation scenario by specifying the number of rooms in each floor. This example uses two rooms in x-, y-, and z-directions.
ScenarioParameters = struct; ScenarioParameters.BuildingLayout = [2 2 2];
Specify the length, width, and height of the room in meters.
ScenarioParameters.RoomSize = [10 10 10];
Specify the number of STAs per room. This example contains one AP and two STAs per room.
ScenarioParameters.NumRxPerRoom = 2;
Assign random positions to APs and STAs by using the
hDropNodes helper function.
[apPositions,staPositions] = hDropNodes(ScenarioParameters);
Obtain the medium access control (MAC) and physical layer (PHY) configuration of APs and STAs and the application traffic configuration of the transmitting nodes by using the
hLoadConfiguration helper function. This helper function also assigns identifiers (IDs) and positions to all of the nodes in the network.
[nodeConfigs,trafficConfigs] = hLoadConfiguration(ScenarioParameters, ... apPositions,staPositions);
Create transmitter and receiver sites from the node configurations by using the
hCreateSitesFromNodes helper function.
[txSite,rxSite] = hCreateSitesFromNodes(nodeConfigs);
Create a residential triangulation object by using the
hTGaxResidentialTriangulation helper object. This object specifies the building parameters of the residential scenario.
triangulation = hTGaxResidentialTriangulation(ScenarioParameters);
Visualize the 802.11ax multinode residential scenario by using the
hVisualizeScenario helper function.
At the end of the simulation, remove the
mlWLANSystemSimulation folder from the path.