Optimize Generated Code for Complex Signals - MATLAB & Simulink (original) (raw)

Main Content

This example shows how SimulinkĀ® Coderā„¢ handles complex signals efficiently. To view the data types of the signals, update the model. On the Debug menu, select Update Model. Complex signals are represented as structures in generated code. Simulink Coder performs various optimizations on these structures. For example:

Because of optimizations such as these, the code generated for complex and noncomplex signals is equally efficient.

Example Model

model='OptimizeComplexSignals'; open_system(model);

See Also

Topics