MATLAB: Can the Sample Time values be displayed along with the colors in a Simulink block diagram

colorsdisplaysamplesignalsimulinktimesvalues

For multi-rate models, Simulink allows the user to display the sample time colors, but this does not display the actual sample time.

Best Answer

Starting from R2008b, you can use the "Sample Time Legend" (called "Timing Legend" since R2019a) to inspect the sample times in your model. To use it, first perform a model update (CTRL+D), then press CTRL+J. For more information, see:
https://www.mathworks.com/help/simulink/ug/how-to-view-sample-time-information.html
Related Question