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. Online Documentation Working with Symbolic Variables For more information, see the online documentation. There is more to this package than we can describe here.