The example you mentioned ships with Simulink Real-Time toolbox in R2017a or later. Also, Simulink Real-Time toolbox has a few other product dependencies
- Requires MATLAB
- Requires Simulink
- Requires Simulink Coder
- Requires MATLAB Coder
- Stateflow recommended
Available on 32-bit Windows and 64-bit Windows only Requires a compiler (See supported compiler versions)