| Contents | Index |
| On this page… |
|---|
Stateflow software runs on Windows® and UNIX® operating systems. Your MATLAB installation documentation provides all the information you need to install Stateflow software. Before installing the product, you must obtain and activate a license (see instructions in your MATLAB installation documentation) and install prerequisite software (see Prerequisite Software for a complete list).
Before installing Stateflow software, you need the following products:
MATLAB
Simulink
C or C++ compiler supported by the MATLAB technical computing environment
The compiler is required for compiling code generated by Stateflow software for simulation. The 32-bit Microsoft® Windows version of the Stateflow product comes with a C compiler (lcc.exe) and a make utility (lccmake). Both tools are installed in the folder matlabroot\sys\lcc. If you do not configure MATLAB to use any other compiler on 32-bit Windows operating systems, Stateflow software uses lcc to build targets.
For platforms other than Microsoft Windows or to install a different compiler, see Setting Up Your Own Target Compiler.
For information about product dependencies and requirements, see www.mathworks.com/products/stateflow/requirements.html.
If you use the UNIX version of the Stateflow product or do not use the lcc compiler, you must install your own target compiler. You can use any compiler supported by MATLAB software, as described in Building MEX-Files in the MATLAB External Interfaces documentation.
To install a compiler for the Stateflow product, follow these steps:
mex -setup
Follow the prompts for entering information about the compiler.
If you plan to run the Microsoft Windows version of the Stateflow product on a laptop computer, you should configure the Windows color palette to use more than 256 colors. Otherwise, you may experience unacceptably slow performance.
To set the Windows graphics palette:
Click the right mouse button on the Windows desktop to display the desktop menu.
Select Properties from the desktop menu to display the Windows Display Properties dialog box.
Select the Settings panel on the Display Properties dialog box.
![]() | Basic Tutorial for Modeling Event-Driven Systems | Related Products | ![]() |

Learn how engineers use Stateflow to model state machines in their Simulink models.
| © 1984-2012- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |