This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

Choose a Procedure to Simulate a Model

Guidelines for Simulation

When you simulate a model, use these guidelines to choose the right procedure.

Do this step...When...

Speed up simulation

You have a large model with many blocks.

See Speed Up Simulation.

Include custom code

You want to take advantage of legacy code that augments model capabilities and also include custom variables and functions that you share between your custom code and Stateflow® generated code. See Integrate Custom C/C++ Code for Simulation.

Include custom code only for library charts

You want to provide custom code in a portable, self-contained library for use in multiple models.

Choose the Right Procedure for Simulation

To choose the right procedure for simulation, find the highlighted block that describes your goal and see the corresponding section in Integrate Custom C/C++ Code for Simulation.

    Tip:   To navigate to the corresponding section, click the block in the flow chart.

Related Topics

Was this topic helpful?