| Contents | Index |
In many cases, you may want your code to run faster and more efficiently. Code acceleration provides optimizations for accelerating fixed-point algorithms through MEX file generation. In Fixed-Point Toolbox the fiaccel function converts your MATLAB code to a MEX function and can greatly accelerate the execution speed of your fixed-point algorithms.
Code generation creates efficient, production-quality C/C++ code for desktop and embedded applications. There are several ways to use Fixed-Point Toolbox software to generate C/C++ code.
| Use... | To... | Requires... | See... |
|---|---|---|---|
| MATLAB® Coder™ (codegen) function | Automatically convert MATLAB code to C/C++ code | MATLAB Coder code generation software license | Generating C Code from MATLAB Code at the Command Line in the MATLAB Coder documentation |
| MATLAB Function | Use MATLAB code in your Simulink models that generate embeddable C/C++ code | Simulink license | Using the MATLAB Function Block in the Simulink documentation |
MATLAB code generation supports variable-size arrays and matrices with known upper bounds. To learn more about using variable-size signals, see What Is Variable-Size Data? in the Code Generation for MATLAB documentation.
![]() | Code Acceleration and Code Generation from MATLAB for Fixed-Point Algorithms | Requirements for Generating MEX Files from MATLAB Algorithms | ![]() |

Learn how to apply early verification to your development process through these technical resources.
How much time do you spend on testing to ensure implementation meets system-level requirements?
| © 1984-2012- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |