Available under Creative Commons-ShareAlike 4.0 International License.
Find the roots for the following:
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 »
- 瀏覽次數:1231