statistics
R2026bStatistics of past execution periods
Syntax
Description
returns statistics of previous periods of code execution.
stats = statistics(rate)stats is a struct with these fields:
Periods, NumPeriods,
AveragePeriod, StandardDeviation, and
NumOverruns.
The statistics are computed over the most recent 1,000 execution periods. If fewer than 1,000 periods are available, all available periods are used for the calculation.
Here is a sample execution graphic using the default setting,
'slip', for the OverrunAction property in the
Rate object. See OverrunAction for more information on overrun code execution.

The output of statistics is:
stats =
Periods: [0.7 0.11 0.7 0.11]
NumPeriods: 4
AveragePeriod: 0.09
StandardDeviation: 0.0231
NumOverruns: 2Input Arguments
Output Arguments
Examples
Version History
Introduced in R2016a