symmatrix
Description
creates an X
= symmatrix('X
',[nrow ncol]
)nrow
-by-ncol
symbolic matrix variable
X
. Symbolic matrix variables represent matrices, vectors, and scalars
in compact matrix notation. For more information, see Create Symbolic Matrix Variables.
Examples
Input Arguments
Limitations
Differentiation functions, such as
jacobian
andlaplacian
, currently do not accept symbolic matrix variables as input. To evaluate differentiation with respect to vectors and matrices, you can use thediff
function instead.To show all the functions in Symbolic Math Toolbox™ that accept symbolic matrix variables as input, use the command
methods symmatrix
.
Alternative Functionality
Alternative Approaches for Creating Symbolic Matrix Variables
To create several symbolic matrix variables in one function call, use syms var1
... varN [nrow ncol] matrix
. For more details, see syms
.
Version History
Introduced in R2021a