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
Function call: In the function call, not any arguments are passed so there are no input arguments in the function header. The function returns an output argument, therefore th

Example of Plotting from a Function: For illustration, the function can be called as shown below:      >> y = [1:2:9].^3      y =     1  27  125  343  729

Illustration of finding a sting: Let's enlarge this, and write a script which creates a vector of strings which are phrases. The outcome is not suppressed so that the string

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


Basic mathematical operations: All the basic mathematical operations can be executed on symbolic expressions and variables (example, add, raise to a power, multiply, subtract,

Initializing the data structure - Function: Function is shown as:   >> printcylvols(cyls) Cylinder x has a volume of 169.6 Cylinder a has a volume of 100.5

Technique to creating this structure: An alternative technique of creating this structure, that is not as efficient, includes using the dot operator to refer to fields in the


Scaling:   change a row by multiplying it by a non-zero scalar sri →  ri For illustration, for the matrix: