Documentation

  • Documentation Home
  • Stateflow
  • Simulation in Simulink
  • Data Specification
  • Data Specification Basics
  • Vectors and Matrices
  • Enumerated Data
  • String Data
  • Fixed-Point Data
  • Complex Data
  • All
  • Examples
  • Functions
  • Blocks
  • More
    • All
    • Examples
    • Functions
    • Blocks

    Vectors and Matrices

    Nonscalar values

    Vectors and matrices combine separate scalar data into a single, multidimensional signal. Modify individual elements or perform arithmetic on entire vectors and matrices. In C charts, use MATLAB® functions to perform standard matrix multiplication and division.

    Topics

    Vectors and Matrices in Stateflow Charts

    Process multidimensional signals.

    Specify Size of Stateflow Data

    Specify the size of your Stateflow® data.

    Supported Operations for Vectors and Matrices

    Perform mathematical computations on vector and matrix operands.

    Declare Variable-Size Data in Stateflow Charts

    Define inputs and outputs whose size can change at run time.

    Featured Examples

    Model the Dynamics of Moving Billiard Balls

    Model the Dynamics of Moving Billiard Balls

    Model the opening shot in a billiards game by using continuous-time matrix variables. In the model, a Stateflow® chart simulates the dynamics of a hybrid system that has a large number of discontinuities. For more information, see Continuous-Time Modeling in Stateflow.

    Open Model
    Detect Valid Transmission Data by Using Frame Synchronization

    Detect Valid Transmission Data by Using Frame Synchronization

    Process complex data in a Stateflow® chart. The model uses vectors of complex data to find a fixed pattern in a signal from a communication system.

    Open Model
    Compute Output Based on Size of Input Signal

    Compute Output Based on Size of Input Signal

    Declare variable-size data in a chart and compute output in MATLAB functions.

    Open Model
    Stateflow Documentation
    • Examples
    • Blocks and Other Reference
    • Release Notes
    • PDF Documentation
    Support
    • MATLAB Answers
    • Installation Help
    • Bug Reports
    • Product Requirements
    • Software Downloads

    © 1994-2020 The MathWorks, Inc.

    • Terms of Use
    • Patents
    • Trademarks
    • Acknowledgments