MATLAB MATLAB Cubic Spline Interpolation

Click For Summary
The discussion centers around a user seeking assistance with a MATLAB assignment involving cubic spline interpolation (CSI). The assignment requires creating a MATLAB program, cspline_curve(x,y), that generates a curve by interpolating given x and y coordinates using piecewise parametric cubic curves. The user expresses frustration due to a lack of resources, as the class does not have a textbook, and they are new to MATLAB, having just started using it. They mention the need to incorporate the Gauss method and pivoting, as specified by the instructor, and have provided the assignment sheet and .m files for reference. The user requests any guidance or insights to help complete the assignment, emphasizing the urgency and their struggle with the material.
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
2K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 1 ·
Replies
1
Views
12K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 5 ·
Replies
5
Views
3K
  • · Replies 2 ·
Replies
2
Views
2K