Calling of function polyval, MATLAB in Engineering

Calling of Function polyval:

The curve does not appear very smooth on this plot, but that is as there are only five points in the x vector.

382_Calling of Function polyval.png

To estimate the temperature at various times, polyval can be used for discrete x points; it does not have to be used with the whole x vector. For illustration, to interpolate between the given data points and estmate what the temperature was at 2:30 p.m., 2.5 would be used.

>> polyval(coefs,2.5)

ans =

   67.1357

The polyval can also be used to extrapolate beyond the given data points, for illustration, to estimate the temperature at 1 p.m.:

>> polyval(coefs,1)

ans =

   54.6000

Posted Date: 10/22/2012 8:49:08 AM | Location : United States







Related Discussions:- Calling of function polyval, Assignment Help, Ask Question on Calling of function polyval, Get Answer, Expert's Help, Calling of function polyval Discussions

Write discussion on Calling of function polyval
Your posts are moderated
Related Questions
Program of passing arguments to functions: This was an illustration of a function which did not receive any input arguments nor did it return any output arguments; it easily a

Symbolic Variables and expressions: The MATLAB has a type known as sym for the symbolic variables and expressions; these work with strings. The illustration, to generate a sym

Example Exit modular program: In the illustration below, the user  Chose the Limit; -   Whenever prompted for n, entered the two invalid values before finally ente

FOR Loop: The for loop, or the for statement, is used whenever it is essential to repeat statement(s) in the script or function, and whenever it is known ahead of time how man

Subfunctions: Though, it is possible to have more than one function in a given M-file. For illustration, if one function calls the other, the first function would be the prima

Image Processing: The Images are represented as grids, or matrices, of picture elements (known as pixels). In MATLAB an image usually is represented as a matrix in which each


Modular programs: In a modular program, the answer is broken down into modules, and each is executed as a function. The script is usually known as the main program. In orde

Plotting from a Function: The following function creates a Figure Window as shown in figure, which shows various types of plots for similar y vector. The vector is passed as a

Creating a cell array: The other method of creating a cell array is easy to assign values to particular array elements and build it up element by element. Though, as explained