How to Improve Performance in Acceleration Modes
To get the best performance when accelerating your models:
Set... To... Solver data inconsistency
Array bounds exceeded
Signal storage reuse selected
Disable Stateflow® debugging and animation.
When logging large amounts of data (for instance, when using the Workspace I/O, To Workspace, To File, or Scope blocks), use decimation or limit the output to display only the last part of the simulation.
Customize the code generation process to improve simulation speed. For details, see Customize the Build Process.
On computers running the Microsoft®
Windows® operating system, the accelerator and rapid
accelerator modes use the default 64-bit C compiler supplied
by MathWorks® to compile your model. If you have a C
compiler installed on your PC, you can configure the
mex command to use it instead.
You might choose to do this if your C compiler produces
highly optimized code since this would further improve
For an up-to-date list of 32- and 64-bit C compilers that are compatible with MATLAB® software for all supported computing platforms, see: