https://ch.mathworks.com/help/matlab/ref/matlab.system.getsampletimeimpl.html
matlab.system.getSampleTimeImpl - Specify sample time type, offset time, and sample time - MATLAB
This MATLAB function returns the sample time specification created within the method body, sts, for the System object obj.
matlabsystemspecifysampletime