

We will make use of these in the sections to come.

Symbolic matrices are created in much the same way numeric matrices are. Write them by hand, (or how latex would typeset them). Exponents, for example are printed on the line above, trying to mimic how you might The pretty() function tries to display a symbolic expression in a prettier way. H = compose(f,g) % functional composition: f(g(X)) f = cos(X)įunctions of multiple variables can also be created. We can build up more complicated symbolic expressions by defining functions of these variables.

To convert a constant symbolic expression to a regular Matlab double value, use the double() function. W = r*2-3/t % notice that r is not evaluated T = sym(2/3) % Need to use sym here, not syms Symbolic variables are treated differently than regular variables in Matlab and must be created using the sym() or syms() functions.Ĭonstant symbols can be defined too, which are not evaluated numerically. Symsum, taylor, diff, int, jacobian, inv, det, eig, svd, vpa, rats, Sym, syms, double, pretty, subs, findsym, compose, factor, expand, collect, subexpr, finverse, simplify, simple, solve, limit, For more information, see the online documentation. There is more to this package than we can describe here.
