Quadratic interpolation of temperature, MATLAB Programming

Temperature readings were done every hour (starting at 1 P.M., but the end time could vary) and stored in a vector called readings. Write a function called halffit that receives this vector as an argument and uses a quadratic interpolation (second order) to determine what the temperature was every half hour between the actual recorded temperatures.

The function then plots, on one graph, the original temperature readings (using a ‘o' for the points), the interpolated temperatures at the half hours (using a '+' for these points), and the quadratic curve that was used for the interpolation. Put a legend on the graph to distinguish them. The number of hours that was used for the original vector may not be assumed. For example, the function might be called as follows:

2104_Quadratic Interpolation of Temperature.png

>>readings = [33, 40, 42, 41, 39, 32];
>>halffit(readings)

The Figure Window would look like the following.

Posted Date: 3/13/2013 5:25:57 AM | Location : United States







Related Discussions:- Quadratic interpolation of temperature, Assignment Help, Ask Question on Quadratic interpolation of temperature, Get Answer, Expert's Help, Quadratic interpolation of temperature Discussions

Write discussion on Quadratic interpolation of temperature
Your posts are moderated
Related Questions
Illustration of Modifying Elements: Illustration, the fifth element in the vector newvec is 9 >> newvec(5) ans = 9 The subset of a vector, that would be a vector it

Damped free vibrations can be modelled by considering a block of mass m that is attached to a spring and a dashpot as shown. From Newton's second law of motion, the displac

You are asked to create an american option multiplicative binomial model calculator in MatLab. Both put and call options should be valued. Given u, d, S 0 , K, r, and T (the usual

A three degree of freedom system is shown in Figure.  The three masses are each 1 kg and are constrained to move in the directions shown.   The three stiffnesses are   5 kN/m, 50 k

The secant method is an iterative root nding method that is super-linear. The method has the advantage that it is faster than linear methods and does not require knowledge of the

Build a single phase model for the simple 3-phase system shown in the single line diagram shown below using SimPowerSystems in MATLAB Simulink. Data: Source Voltage

Relational Expressions: The Conditions in if statements use expressions which are theoretically, or logically, either true or false. These expressions are termed as relational

i want to save the values of a particular equation in a for loop.. for ex: for i=1:100 et=(x+yz); end thus how can i store the values of et at each iteration

I have couple questions in MATLAB I need help in

MATLAB. • MATLAB Programming; • Simulation in MATLAB.