Roots function - polynomials, MATLAB in Statistics

Roots function - Polynomials:

The roots function in MATLAB is used to find the roots of an equation represented by a polynomial. For illustration, for the mathematical function (Note that this is a mathematical expression, not a MATLAB!),

f(x) = 4x3 - 2x2 - 8x + 3

to compute the equation f(x) = 0:

>> roots([4 -2 -8 3])

ans =

   -1.3660

    1.5000

    0.3660

 

 

Posted Date: 10/22/2012 8:41:33 AM | Location : United States







Related Discussions:- Roots function - polynomials, Assignment Help, Ask Question on Roots function - polynomials, Get Answer, Expert's Help, Roots function - polynomials Discussions

Write discussion on Roots function - polynomials
Your posts are moderated
Related Questions
Functions which return Values versus printing: Also, the function which computes and returns values (throughout the output arguments) does not generally print them; that is le

Example of Nested functions: For illustration, the function below computes and returns the volume of a cube. Three arguments are then passed to it, for the width and length of

Illustration of nested for loops and the if statements: For illustration,when the file contains: 33   -11  2  4      5   9 22     5  -7  2     11    3 the outco

Help function: Function is computing the two values, there are two output arguments in the function header (i.e., area & circum), that are placed in the square brackets [ ]. A

Operation on file: We concentrate first on the fgetl function that reads strings from the file one line at a time. The fgetl functions afford more control over how the data is

function sortrows - sorting strings: The function sortrows sorts each and every row as a block, or group, and it also will work on numbers. Here in this illustration the rows

Input in a While Loop: The script below repeats the procedure of prompting a user, the reading in a positive number, and echo-printing it, as long as the user properly enters

Steps for input output functions - Lower level file: The steps involved are as shown below:  Open the file.  Read the file, write to the file, or append to the file.

Logical Built-In Functions: There are built-in functions in the MATLAB which are useful in conjunction with vectors or matrices of all logical true or false values; two of the

Properties of the text box - graphics objects: By using get will show properties of the text box, the illustration is as shown below: >> get(thand)   BackgroundColor