how to do the following code on matlab gui.
interpolation and Newton's Divided Difference Table
The paired data points: x=[0.1 0.2 0.3 0.5] , y=[-0.29004986 -0.56079734 -0.81401972 -1.28060436]
1. Write MATLAB scipt file
a) Read the data from file (DivDiffData.dat).
2. Performs the folling calculations
a) Create and display Newton's Divided Difference table;
b) Create backward polnomials of order 1 to n.
3. Determine an axproximation for the functional value of x=0.4 from these polynomials
Output:
1. Plot the given data points. Use makers to indicate each point.
2. Plot each polynomial genarated.
3. Display the various interpolated values for f(0.4) in table format.