Documentation

Vectors and Matrices

Nonscalar values

Examples and How To

Define Vectors and Matrices

Describes how to define and initialize vectors and matrices

Assign and Access Vector and Matrix Values

Describes how to assign and access values of elements in vectors and matrices in C charts

Find Pattern in Data Transmission Using Vectors

The model sf_frame_sync_controller is an example of using a vector in a C chart to find a fixed pattern in a data transmission.

Calculate Motion Using Matrices

The model sf_pool is an example of using matrices in a C chart to simulate the opening shot on a pool table.

Concepts

How Vectors and Matrices Work in C Charts

Describes how vectors and matrices work in Stateflow® charts

Scalar Expansion for Converting Scalars to Nonscalars

Explains how scalar expansion works and how the rules apply for function calls

Operations For Vectors and Matrices in C Charts

Describes the operations you can perform on vector and matrix operands

Rules for Vectors and Matrices in C Charts

Provides rules for using vectors and matrices in C charts

Best Practices for Vectors and Matrices in C Charts

Gives tips for using vectors and matrices in C charts

Was this topic helpful?