Help CenterHelp Center
Packet transmission time
t = transmitTime(cfg)
t = transmitTime(cfg,unit)
example
t = transmitTime(cfg) returns the packet transmission time in seconds for the physical layer (PHY) format configuration specified in cfg.
t
cfg
t = transmitTime(cfg,unit) specifies unit, the unit in which the function returns the packet transmission time.
unit
collapse all
Create an HE SU configuration object for a 40 MHz transmission.
cfgHE = wlanHESUConfig; cfgHE.ChannelBandwidth = 'CBW40';
Calculate and display the packet transmission times in seconds and milliseconds.
t = transmitTime(cfgHE)
t = 1.1600e-04
t_milli = transmitTime(cfgHE,'milliseconds')
t_milli = 0.1160
wlanDMGconfig
wlanEHTMUConfig
wlanHEMUconfig
wlanHESUconfig
wlanHETBconfig
wlanHTconfig
wlanNonHTconfig
wlanS1Gconfig
wlanVHTconfig
wlanWURconfig
PHY format configuration, specified as one of these objects: wlanDMGConfig, wlanEHTMUConfig, wlanHEMUConfig, wlanHESUConfig, wlanHETBConfig, wlanHTConfig, wlanNonHTConfig, wlanS1GConfig, wlanVHTConfig, or wlanWURConfig.
wlanDMGConfig
wlanHEMUConfig
wlanHESUConfig
wlanHETBConfig
wlanHTConfig
wlanNonHTConfig
wlanS1GConfig
wlanVHTConfig
wlanWURConfig
'seconds'
'milliseconds'
'microseconds'
'nanoseconds'
The unit of the returned packet transmission time, specified as one of 'seconds', 'milliseconds', 'microseconds', or 'nanoseconds'.
Data Types: char | string
char
string
Packet transmission time, returned as a positive scalar.
When you do not specify unit, or specify unit as 'seconds', the time is returned in seconds.
When you specify unit as 'milliseconds', the time is returned in milliseconds.
When you specify unit as 'microseconds', the time is returned in microseconds.
When you specify unit as 'nanoseconds', the time is returned in nanoseconds.
Introduced in R2022b
您曾对此示例进行过修改。是否要打开带有您的编辑的示例?
您点击的链接对应于以下 MATLAB 命令:
请在 MATLAB 命令行窗口中直接输入以执行命令。Web 浏览器不支持 MATLAB 命令。
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Contact your local office