You are here

Example 2.15

8 October, 2015 - 17:29

Find the roots for the following:

0.6x^2+0:3x -0.9 = 0

To find the roots, first we enter the coefficients of polynomial in to a row vector p with p=[0.6 0.3 -0.9] and issue the r=roots(p) command. The following shows the command window output:

    » p=[0.6 0.3 -0.9]
p =
    0.6000  0.3000  -0.9000
» r=roots(p)
r =
    -1.5000
    1.0000
»