getSampleTime
Query sample time
Syntax
sts = getSampleTime(obj)
Description
returns the sample time
specification for the System object™ sts = getSampleTime(obj)obj when the System object is included in a MATLAB System block. You can call getSampleTime in the
stepImpl method to change the algorithm based on the sample time.
Before sample time has propagated throughout the MATLAB System block model,
getSampleTime returns the getSampleTimeImpl sample time
specification. If your system object does not override getSampleTimeImpl, the default
Inherited sample time specification is returned.
After sample time has propagated, getSampleTime returns the sample time specification populated
with the actual MATLAB System block sample time type, sample time, and offset time.
Input Arguments
Output Arguments
Examples
Version History
Introduced in R2017b