symfunmatrix2symfun
Description
converts a symbolic matrix function f = symfunmatrix2symfun(fM)fM of type
symfunmatrix to a symbolic function f of type
symfun.
The output symbolic function has the same matrix dimensions as the input symbolic matrix
function, and its components are filled with automatically generated elements. For example,
syms fM(x) [1 2] matrix; f = symfunmatrix2symfun(fM) converts the
symbolic matrix function fM(x) to the symbolic function f(x) =
[fM1_1(x), fM1_2(x)]. The generated elements fM1_1 and
fM1_2 do not appear in the MATLAB® workspace.
Examples
Input Arguments
Tips
To show all the functions in Symbolic Math Toolbox™ that accept symbolic matrix functions as input, use the command
methods symfunmatrix.Instead of using
symfunmatrix2symfunto convert a symbolic matrix function to a symbolic function, you can use the shortcutsymfun. For an example, see Convert Symbolic Matrix Function to Symbolic Function. (since R2024b)
Version History
Introduced in R2022a