| Contents | Index |
This table summarizes what's new in V4.0 (R12):
| New Features and Changes | Version Compatibility Considerations | Fixed Bugs and Known Problems |
|---|---|---|
| Yes Details below | Yes—Details labeled as Compatibility Considerations, below. See also Summary. | No |
New features and changes introduced in this version are described here:
Code generation from Stateflow Coder software has been significantly improved:
The code looks hand written.
ROM and RAM size rivals hand-written code.
Code generation is faster.
This release automatically upgrades all features introduced in previous versions of Stateflow software to work with Release 12 of the MATLAB product family.
If you open a machine (model) made with a previous version of Stateflow software, you will see a warning message similar to the following:
Warning: An old Stateflow machine 'sf_car' is loaded. This machine was saved with an older Stateflow 3.0311061000001. Please save this machine again!
By saving the machine in the most recent version of Stateflow software, it is automatically upgraded.
![]() | Version 4.1 (R12.1) Stateflow and Stateflow Coder Software | Version 3.0 (R11) Stateflow and Stateflow Coder Software | ![]() |

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 |