主要内容

mobilityInfo

Class: wnet.Mobility
Namespace: wnet

Obtain position and velocity of wireless node

Since R2026a

Description

[position,velocity] = mobilityInfo(mobilityModel,currentTime) returns the position and velocity of a node at the specified time currentTime.

Input Arguments

expand all

Mobility model, specified as an object of a subclass of the wnet.Mobility base class.

Current simulation time, specified as a nonnegative scalar. Units are in seconds.

Output Arguments

expand all

Node position in 3-D Cartesian coordinates, returned as a three-element numeric row vector. The units are in meters.

Data Types: double

Node velocity in 3-D Cartesian coordinates, returned as a three-element numeric row vector. The units are in meters per second.

Data Types: double

Version History

Introduced in R2026a