Effacer les filtres
Effacer les filtres

derivative of cubic spline for use in nonlinear optimization

1 vue (au cours des 30 derniers jours)
dominik
dominik le 19 Mar 2015
Hi
i wanna solve a functional system of nonlinear equations by collocation. To speed up the solution process i want to provide derivatives to the solver. The system includes cubic splines. So far I use Matlab's csapi to produce the cubic spline. To provide derivatives of the system, i need the derivatives of the output of csapi wrt the values of the function I interpolate at the grid points. (Either derivatives of the polynomical coefficients or even better of the evaluated polynomial). Does anyone have code for this?
Formally:
Be:
Spline=csapi(grid,functionvalues)
Interpolatedvalue=fnval(Spline,querypoint)
Then I need:
d Spline.coefs / d functionvalues
Or better:
d Interpolatedvalue / d functionvalues
Many thanks!

Réponses (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by