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
Displaying the cell arrays: There are several techniques of displaying the cell arrays. The celldisp function shows all elements of the cell array:   >> celldisp(cellro

readlenwid function: function call: [length, width] = readlenwid; function header: function [l,w] = readlenwid In the function call, not any argument is passed; henc

printrectarea function: function call: printrectarea(length, width) function header: function printrectarea(len, wid)   In the function call, there are two argume


Finding a sting - function strfind: The function strfind does necessarily similar thing, except that the order of the arguments does make dissimilarity. The common form is str

Related Structure Functions: There are many functions which can be used with structures in a MATLAB. The function isstruct will return 1 for logical true when the variable arg

How can I use the weighted moving average formula in matlab to smooth a column data of 404 values?

Vectors of Structures: In numerous applications, involving database applications, information generally would be stored in the vector of structures, instead of in individual s

Illustration of if - else statement: The one application of an if-else statement is to check for errors in the inputs to a script. For illustration, a former script prompted t

Reading from a Mat-File: The load function is used to read from various types of files. As with save function, by default the file will be supposed to be a MAT-file, and load