MATLAB Cubic Spline Interpolation

Click For Summary
SUMMARY

The discussion centers on implementing cubic spline interpolation in MATLAB for an assignment that requires the use of the Gauss method and pivoting. The user seeks guidance on creating a MATLAB function named cspline_curve(x,y) to interpolate given x and y coordinates and generate a curve. The assignment includes utilizing provided .m files and reviewing accompanying PowerPoint slides for additional context. The user expresses frustration due to a lack of resources and experience with MATLAB.

PREREQUISITES
  • Basic understanding of MATLAB programming (version unspecified)
  • Familiarity with cubic spline interpolation techniques
  • Knowledge of the Gauss method and pivoting in numerical analysis
  • Ability to work with .m files in MATLAB
NEXT STEPS
  • Research the implementation of cubic spline interpolation in MATLAB
  • Learn about the Gauss method and its application in numerical solutions
  • Explore MATLAB's plotting functions to visualize interpolated curves
  • Review MATLAB documentation on handling .m files and function creation
USEFUL FOR

Students in numerical analysis courses, MATLAB users seeking to implement interpolation techniques, and anyone looking to enhance their programming skills in MATLAB for mathematical modeling.

aewinter
Messages
1
Reaction score
0
Hey guys,
I got this assignment last week and have been doing every bit of research I can to try to figure out what I am supposed to be doing. I have found a lot of cubic spline interpolation (csi) write-ups including one on here but we don't have a book in this class to help understand how to do the program my teacher wants, it is supposed to include the Gauss method and pivoting and work with the .m files he provided. We just started using MATLAB last week so I feel like I am going into this double blind, I have zero idea what I'm doing. So after countless hours of trying and getting nowhere I am here trying to find any direction I can get. ANY insight will be of great help. I included the assignment sheet and a .zip of all the .m files he gave us. THANK YOU!

Here is the assignment (this can also be found in an attachment):
In this project, you write a Matlab program cspline_curve(x,y). Given the arrays of x and y coordinates of the points, the program draws a curve by interpolating the points with piecewise parametric cubic curves. You should check the PowerPoint slides cspline_curve.pdf (attached). The figure below (look in Assignment.pdf) shows an example output. Points were generated with random(), which generates random numbers, and passed to the program. The program showed the blue curve by interpolating the red points.
Submit: Printout of your finished
cspline_curve(x,y) program and the image of the curve generated from random numbers.
 

Attachments

Physics news on Phys.org

Similar threads

  • · Replies 2 ·
Replies
2
Views
3K
Replies
5
Views
3K
  • · Replies 8 ·
Replies
8
Views
3K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 1 ·
Replies
1
Views
12K
  • · Replies 3 ·
Replies
3
Views
3K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 2 ·
Replies
2
Views
4K
  • · Replies 5 ·
Replies
5
Views
4K
  • · Replies 2 ·
Replies
2
Views
2K