Udemy
    •  
    •  
    •  
    •  
    •  
    •  
    •  
    •  
Turn what you know into an opportunity and reach millions around the world.
Learn More
Your cart is empty.
Keep shopping
Numerical Methods in MATLAB for Engineering Students Part 2
Highest Rated
Rating: 4.5 out of 5(26 ratings)
532 students

Numerical Methods in MATLAB for Engineering Students Part 2

Interpolation & Curve Fitting Techniques
Last updated 7/2019
English
English [Auto],

What you'll learn

  • Least Squares Regression
  • Polynomial Regression
  • Lagrange Interpolating Polynomials
  • Linear, Quadratic and Cubic Splines
  • Curve Fitting
  • Interpolation

Course content

1 section23 lectures5h 27m total length
  • Welcome! Get started here2:06

    Download the notes outline to guide you through the lecture videos, with blank sections to fill in, and access a complete problem booklet plus downloadable MATLAB code for hands-on practice.

  • Least Squares Regression24:41

    Explore curve fitting and interpolation using least squares regression to find the best-fit linear model y = a1 x + a0 for experimental data, and estimate values via interpolation.

  • Example with MATLAB10:50

    Use MATLAB to perform least squares regression on altitude versus temperature, compute a0 and a1 from summations, and visualize the linear fit against the data, including interpolation at five thousand.

  • Polynomial Regression18:02

    learn to fit data with quadratic or higher polynomial regression by minimizing squared error via least squares, deriving normal equations for coefficients and forming a curve through data points.

  • Example21:36

    Perform polynomial regression in MATLAB by building A and B from data sums and solving A inverse B to obtain quadratic coefficients, then apply to population versus year data.

  • Example with MATLAB12:39

    Learn how to perform polynomial regression in MATLAB by fitting a second-order model with polyfit, evaluating with polyVal, and plotting data and the fit.

  • Lagrange Interpolating Polynomials6:08

    learn to fit a single polynomial to data points using Lagrange interpolating polynomials, where f(x)=sum Yi Li(x) and Li(x) is a product over j≠i of (x−Xj)/(Xi−Xj).

  • Example21:28

    Learn to construct polynomials that exactly interpolate given data points using degree 1 and degree 2, select boundary points around x=8.4, and evaluate the interpolant to estimate f(8.4) in MATLAB.

  • Example10:49

    Interpolate a degree-2 polynomial for f(x) = 1/x using three data points, build the Lagrange basis, and compare P2(3) to 1/3.

  • Lagrange Interpolating Polynomial Algorithm with MATLAB8:45

    Implement the Lagrange interpolating polynomial algorithm in Matlab using data points and an interpolation point, then verify results with examples 10 and 11.

  • Newtons Divided Differences21:17

    Learn Newton's interpolated polynomial and divided differences, compute coefficients a1, a2, a3 from data points, and interpolate with the general form, while easily adding data without reworking.

  • Example17:45

    Apply Newton's divided differences to construct a fourth-order interpolating polynomial from five wind-speed and power data points and estimate power at 26 mph.

  • Divided Differences Algorithm & MATLAB Example8:03

    Implement the Newton divided differences algorithm in MATLAB, build the interpolation table and polynomial, and evaluate at a point using wind and power data.

  • Linear Splines10:15

    Explore linear splines for interpolation by connecting data points with first-order polynomials, using three intervals between four points, and implementing a simple interval-based algorithm to compute the interpolated value.

  • Example with MATLAB7:39

    Apply linear spline interpolation to height and time data to estimate the ball's height at t = 3 s, selecting the appropriate interval and coding the routine in MATLAB.

  • Quadratic Splines15:28

    Explore building quadratic splines using second-order polynomials on data intervals, enforcing endpoint values and interior slope continuity, with a zero second derivative making the first interval linear.

  • Example with MATLAB28:48

    Learn how to apply quadratic spline interpolation to connect data points, enforce endpoint and interior knot conditions, and solve for spline coefficients in MATLAB to estimate height at three seconds.

  • Cubic Splines16:31

    Explore cubic splines, where data points connect with third-order polynomials across n-1 intervals, ensuring smooth first and second derivative continuity and using natural spline end conditions.

  • Example with MATLAB15:24

    Construct a natural cubic spline to interpolate three data points, forming interval polynomials, applying endpoint conditions, first and second derivative continuity, and solving an Ax=B system in MATLAB.

  • Cubic Spline with Lagrange Polynomials16:45

    Apply cubic spline interpolation using Lagrange polynomials to connect data points, derive the second derivatives at knots, and solve for coefficients to prepare a MATLAB algorithm.

  • Example15:22

    Learn to construct natural cubic splines for a three-point dataset. Derive h values, solve for the middle coefficient, and form interval polynomials with MATLAB.

  • Cubic Spline Algorithm with MATLAB10:01

    Explore the cubic spline algorithm in MATLAB, using the Thomas algorithm to solve a tridiagonal system for cubic spline interpolation and map the top surface of a car.

  • Cubic Spline Built In MATLAB Function6:42

    Explore built-in MATLAB curve fitting: use polyfit and polyval for polynomial fitting, and a cubic spline interpolation via a one-step method with a spline option, plus linear interpolation.

Requirements

  • Be familiar with topics from Calculus
  • MATLAB fundamentals like logicals and for loops will be needed

Description

Interpolation and curve fitting techniques are widely-used by scientists and engineers.  Why? Well, experiments generate data and it's necessary to find a way to model this data mathematically.  Curve fitting helps us do that!

This course covers interpolation and curve fitting techniques typically found in an undergraduate-level Numerical Methods course.

MATLAB will be used to implement the methods on the computer.

What we'll cover:

  • Least squares regression

  • Polynomial regression

  • Lagrange interpolating polynomials

  • Newton's divided differences

  • Linear splines

  • Quadratic splines

  • Cubic splines

  • MATLAB implementation of the methods

What comes with the course:

  • Downloadable outline of notes (.pdf file) to help you follow along with the lectures and keep you engaged

  • 14 downloadable MATLAB .m files of all codes used in the course

  • Easy to follow lecture videos

After this course you'll be able to generate your own curve fits for experimental data as well as know how to properly interpolate to get the best estimates.

If you're taking a Numerical Methods course at a University, I've got you covered!  We'll work through examples by hand as well as using MATLAB.  This way you'll be prepared if you get an exam problem you have to complete by hand.

If you're looking for a way to improve your coding skills this is a great course for that too!  We'll cover lots of algorithms that'll use different coding concepts like if-elseif  statements and for loops. So, if you want more practice with programming in MATLAB this course will definitely give you that experience.

Who this course is for:

  • Engineers and engineering students who need to know how to do interpolation and curve fit experimental data