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
Solve for unknowns 'x' and 'y' from Equations (1) and (2) using MATLAB. (However, if MATLAB is not the appropriate software to solve these two simultaneous equations, please sugges

Creating matrix variables- arguments: The CAT arguments dimensions are not reliable. The Iterators can also be used for the values on the rows by using the colon operator;

I am using the wavelet gui (wavemenu) to decompose some data. I need to be able to export the signals. This is not a problem using only "Wavelet 1D" where only one time series is b

draw midpoint circle by matlab

i have a problem in doing my project which detects image forgery detection using resampling technique any one please help in writing my program

To accept two numbers from the user; Display all prime numbers between these two numbers.

how to find matrix inverse using matlab command

Micro-mouse is an engineering design competition created by IEEE in the late 1970s. Small robotic "mice" solve a 16x16 cell maze. The mice are completely autonomous and must find t


write matlab program for Cubic Spline Sweep Surface