Accelerating the pace of engineering and science
These rules apply when you use vectors and matrices in C charts.
Use only operands of equal dimensions for element-wise operations
If you try to perform element-wise operations on vectors or
matrices with unequal dimensions, a size mismatch error appears when
you simulate your model. See Operations For Vectors and Matrices in C Charts.
Do not define vectors and matrices with ml base type
If you define a vector or matrix with ml base
type, an error message appears when you try to simulate your model.
This base type supports only scalar data.
For more information about this type, see ml Data Type.
Use only real numbers to set initial values of vectors and
When you set the initial value for an element of a vector or
matrix, use a real number. If you use a complex number, an error message
appears when you try to simulate your model.
You can set values of vectors and matrices to complex numbers
Do not use vectors and matrices with temporal logic operators
You cannot use a vector or matrix as an argument for temporal
logic operators, because time is a scalar quantity.
Join the conversation