Question: This question is about using MATLAB, please plot the answers in MATLAB and include the MATLAB results. 9. Joe had decided to buy stocks of
This question is about using MATLAB, please plot the answers in MATLAB and include the MATLAB results.

9. Joe had decided to buy stocks of a particularly promising Internet company. The price per share was $100, and Joe subsequently recorded the stock price at the end of each week. With the abscissae measured in days, the following data were acquired: (0,100),(7,98),(14,101),(21,50),(28,51),(35,50). In attempting to analyze what happened, it was desired to approximately evaluate the stock price a few days before the crash. (a) Pass a linear interpolant through the points with abscissae 7 and 14. Then add to this data set the value at 0 and (separately) the value at 21 to obtain two quadratic interpolants. Evaluate all three interpolants at x=12. Which one do you think is the most accurate? Explain. (b) Plot the two quadratic interpolants above, together with the data (without a broken line passing through the data) over the interval [0,21]. What are your observations
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
