Using Simulink    

Discretizing a Model from the MATLAB Command Window

Use the sldiscmdl function to discretize Simulink models from the MATLAB Command Window. You can specify the transform method, the sample time, and the discretization method with the sldiscmdl function.

For example, the following command discretizes the f14 model in the s-domain with a 1 second sample time using a zero-order hold transform method.

For more information on the sldiscmdl function, see the reference pages in Simulink Model Construction Commands.


  Discretizing Blocks from the Simulink Model Using Callback Routines