| Symbolic Math Toolbox | ![]() |
Solving Algebraic Equations
If S is a symbolic expression,
attempts to find values of the symbolic variable in S (as determined by findsym) for which S is zero. For example,
uses the familiar quadratic formula to produce
This is a symbolic vector whose elements are the two solutions.
If you want to solve for a specific variable, you must specify that variable as an additional argument. For example, if you want to solve S for b, use the command
Note that these examples assume equations of the form
. If you need to solve equations of the form
, you must use quoted strings. In particular, the command
returns a vector with four solutions.
| Eigenvalue Trajectories | Several Algebraic Equations | ![]() |