MATH 2370 Lecture Notes - Lecture 14: Lagrange Polynomial, Matlab
Document Summary
1:02 pm echo command tells you which parts of the code were executed. In the real world, we often only have discrete data points - not continuous functions ex: temperatures at each hour we might want to estimate values in between the points that we have, called interpolation. If the data is accurate, we use a function to "connect the dots" Note: estimating outside data range is called extrapolation choice of function to interpolate depends on application, e. g. , audio signals, sine/cosine is more appropriate. Matlab built-in function called polyfit(x,y,d) x is the vector of x points, y is the vector of y points, and d is the degree finds interpolating polynomial if. 3. (if this is not true it uses regression) Given n distinct points, ( ), where , there is a unique polynomial of degree n-1 that will pass through these points.