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
Vector operations: As vectors are special cases of matrices, the matrix operations elaborated (addition, subtraction, multiplication, scalar multiplication, transpose) work on

A matlab function to calculate filter order

Set Operations: The MATLAB has numerous built-in functions which perform set operations on vectors. These involve intersect, union, setdiff, unique, and setxor. All these func

Splits a string : The strtok function splits a string into pieces; it can be called in many ways. The function receives one string as an input argument. It appears for the fir

Finding a sting - function findstr: The function findstr receives two strings as input arguments. It finds all the occurrences of shorter string contained by the longer, and r

Illustration of Gauss elimination: For illustration, for a 2 × 2 system, an augmented matrix be: Then, the EROs is applied to obtain the augmented matrix into an upper

Use polyval to evaluate the derivative at xder. This will be the % slope of the tangent line, "a" (general form of a line: y = ax + b). % 4. Calculate the intercept, b, of t

Function cellplot - Cell array: The function cellplot place a graphical display of the cell array in a figure Window; though, it is a high-level view and fundamentally just di

Function fieldnames - structure functions: The function fieldnames will return the names of the fields which are contained in the structure variable. >> pack_fields = fiel

Gauss Elimination: The Gauss elimination technique consists of:    Generating the augmented matrix [A b]    Applying EROs to augmented matrix to obtain an upper trian