Interpreting Cubic Spline Coefficients for spline(theta, R)

  • Thread starter Thread starter danago
  • Start date Start date
  • Tags Tags
    Cubic
Click For Summary
SUMMARY

The discussion focuses on interpreting cubic spline coefficients generated by the MATLAB function spline(theta, R). The output includes a form of 'pp', breaks at [0.5000, 1], and coefficients [-1.9538, 1.1125, 0.8415]. The user, Dan, expresses confusion regarding the interpretation of these coefficients, initially assuming they represented a polynomial in standard form. The conversation also touches on using splines to solve differential equations.

PREREQUISITES
  • Understanding of cubic splines and their properties
  • Familiarity with MATLAB and its spline functions
  • Basic knowledge of polynomial equations and their forms
  • Concepts of differential equations and numerical methods
NEXT STEPS
  • Research the interpretation of spline coefficients in MATLAB's spline function
  • Study the differences between piecewise polynomial and standard polynomial forms
  • Learn about using cubic splines for solving differential equations
  • Explore MATLAB's ppval function for evaluating piecewise polynomial structures
USEFUL FOR

This discussion is beneficial for data analysts, mathematicians, and engineers who are working with spline interpolation in MATLAB, particularly those interested in numerical methods for solving differential equations.

danago
Gold Member
Messages
1,118
Reaction score
4
>> spline(theta, R)

ans =

form: 'pp'
breaks: [0.5000 1]
coefs: [-1.9538 1.1125 0.8415]
pieces: 1
order: 3
dim: 1

theta and R are of equal size and contain the points i want to fit to a spline.

What really has me perplexed is the coefficients that are produced. How do i interpret these coefficients; I originally assumed that they were the coefficients of a polynomial in standard form, however after plugging in my original values to check i have found that this is clearly not the case.

Any help? :smile:

Thanks in advance.
Dan.
 
Physics news on Phys.org
I need to know how could we solve differential equation using concept of splines
 

Similar threads

Replies
1
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 4 ·
Replies
4
Views
1K
  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 13 ·
Replies
13
Views
5K
  • · Replies 12 ·
Replies
12
Views
3K
  • · Replies 12 ·
Replies
12
Views
4K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 35 ·
2
Replies
35
Views
14K
Replies
2
Views
3K