statistics
Syntax
Description
stats = statistics(rate)stats is
          a structure with these fields: Periods, NumPeriods,
            AveragePeriod, StandardDeviation, and
            NumOverruns.
Here is a sample execution graphic using the default setting,
            'slip', for the OverrunAction property in the
            ros2rate 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
Version History
Introduced in R2022b