Documentation

This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

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?