What do you think the solutions should look like? Let's see if you're right.ĭo those solutions look familiar? (You may have to mentally re-arrange them to make them look the way you're used to seeing You can also ask MATLAB to solve equations that involve arbitrary constants.Ī nice example is to try to find the general solutions to the generalized form of the quadratic equation ax^2+bx+c=0. That was easy! MATLAB found both of the solutions. First we symbolically define our variable x and then apply the command. Matlab can solve this with the solve command. Suppose you want to find the solutions to the quadratic equation x^2-5x=14 The numerical approach usually involves taking an initial estimate of theĬorrect solution and then repeating some kind of calculation over and over to gradually improve the estimate. Very good approximation to the precise answer. It looks easy to solve but it isn't! An equation like this one can be solved using a numerical method which will yield a For example try solving (by hand) the equation Unfortunately there is a large class of problems that will defy attempts to solve them this The symbols in the equation(s) much like you would do with pencil and paper in an introductory math class. MATLAB can sometimes obtain a symbolic solution by manipulating We can ask MATLAB to try to solve equations two different ways. Solving a System of Equations Symbolically.