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
Sound Files: The sound signal is an illustration of a continuous signal which is sampled to result in a discrete signal. In this situation, sound waves traveling through the a

Anonymous Functions: The anonymous function is a very easy, one-line function. The benefit of an anonymous function is that it does not have to be stored in an M-file. This ca

Examine exponential function: The algorithm for the main script program is shown below:  Call a function eoption to show the menu and return the user's choice.  Loop

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

Removing Whitespace Characters: The MATLAB has functions which will eliminate trailing blanks from the end of a string and/or leading blanks from the starting of a string.

Intersect function and setdiff function: The intersect function rather than returns all the values which can be found in both of the input argument vectors. >> intersect(v

Individual structure variable: The individual structure variable for one software package may look like this: The name of the structure variable is a package; it has f

Binary Search: The binary search supposes that the vector has been sorted first. The algorithm is just similar to the way it works whenever looking for a name in a phone direc

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

Technique to create Nested structures: This technique is the most proficient. Though, the other technique is to build the nested structure one field at a time. As this is a ne