(Not recommended) Vectorize expression
vectorize is not recommended.
Create a string array that squares a variable, and change it to a vector operation.
c = "t^2" c = "t^2"
cdot = vectorize(c) cdot = 't.^2'
Input, specified as a character vector, string scalar, or inline function object.