Documentation Center

  • Trial Software
  • Product Updates

How Vectors and Matrices Work in C Charts

When to Use Vectors and Matrices

Use vectors and matrices when you want to:

  • Process multidimensional input and output signals

  • Combine separate scalar data into one signal

For examples, see Find Pattern in Data Transmission Using Vectors and Calculate Motion Using Matrices.

Where You Can Use Vectors and Matrices

You can define vectors and matrices at these levels of the Stateflow® hierarchy:

  • Charts

  • Subcharts

  • States

  • Functions

You can use vectors and matrices to define:

  • Input data

  • Output data

  • Local data

  • Function inputs

  • Function outputs

You can also use vectors and matrices as arguments for:

  • State actions

  • Transition actions

  • MATLAB® functions

  • Truth table functions

  • Graphical functions

  • Simulink® functions

  • Change detection operators

For more information, see Operations For Vectors and Matrices in C Charts and Rules for Vectors and Matrices in C Charts.

Was this topic helpful?