

Generally if you need to define more symbolic variables, for example, to specify the following function This time the expression keeps the theta angle as a parameter. Thus, you have to declare the angle as a symbolic value using the sym( ) function. But sometimes, you need to keep the mathematical expression (in this case a simple sine calculation) in a symbolic format. This can be done using the sym and syms commands.Ĭonsider the case you want to compute the sine value of an angle θ, with θ = π/2. If you need to perform a symbolic calculation with a certain set of variables, you first have to declare these variables as symbolic. Symbolic calculation is performed with variables of the class sym (defined by the Symbolic Toolbox). vector analysis (jacobian, laplacian.)ĭefining Symbolic Expressions: sym and syms.transform (transform (Fourier, Laplace, etc.).formula manipulation and simplification.Thus, with Matlab you can perform many mathematical operations analytically: This is useful when you don’t want to immediately compute an answer, or when you have a mathematical formula to work on but you don’t want to process it numerically.

Rather than making calculations on known numbers, as you usually do with Matlab, you can make calculations on symbolic expressions. In fact, thanks to the Symbolic Math Toolbox, Matlab provides us with a set of instructions for the symbolic (or literal) calculation. In fact, Matlab, in addition to perform the direct numerical calculation in which we are all accustomed to, it also allows us to evaluate analytically (ie, by keeping the parametric expressions) many of these calculations. Matlab is an application that we all know but we do not always have awareness of its potential.
