Using Simulink Previous page   Next Page

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.


Previous page  Discretizing Blocks from the Simulink Model Working with Blocks Next page

© 1994-2005 The MathWorks, Inc.