How Complex Data Works in Stateflow Charts

What Is Complex Data?

Complex data is data whose value is a complex number. For example, an input signal with the value 3 + 5i is complex. See Complex Signals in the Simulink documentation for details.

When to Use Complex Data

Use complex data when you model applications in communication systems and digital signal processing. For example, you can use this design pattern to model a frame synchronization algorithm in a communication system:

  1. Use Simulink blocks (such as filters) to process complex signals.

  2. Use Stateflow charts to implement mode logic for frame synchronization.

  3. Let the charts access complex input and output data so that nested Embedded MATLAB functions can drive the mode logic.

For an example of modeling a frame synchronization algorithm, see Implementing a Frame Synchronization Controller Using a Stateflow Chart.

Where You Can Use Complex Data

You can define complex data at these levels of the Stateflow hierarchy:

How You Can Use Complex Data

You can use complex data to define:

You can also use complex data as arguments for:

For more information, see Operations on Complex Data in Stateflow Action Language and Rules for Using Complex Data in Stateflow Charts.

  


 © 1984-2008- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS