Reconstruct multivariate spline from csapi
Using the most Excellent Curve Fitting toolbox, I encounter difficulties in reconstructing a bivariate spline that I created from fitting 2D grid data using sp = csapi({x,y}, data).
My problem here is that I want to use the coefficient matrix I get (by calling squeeze(sp.coefs)) in a C header file, and then compute the spline and all of its first and second derivatives inside my C code.
Unfortunately, the elsewise well-documented Curve Fitting Toolbox exhibits some "don't break your head too much over internal mechanisms" manner in this context, rather than giving the math for a multivariate pp-form spline in the context of the coefficient matrix.
Can anybody help me out here? Instead of being a 3D tensor with "depth" 4 (for the coefficients of the bi-cubic spline per quadrant), the coefficient matrix is a 2D matrix, and there is no documentation on which entry of this matrix goes where in the bi-cubic spline formula that I can only expect to be $\sum_{i=0}^3 \sum_{j=0}^3 x^i y^j a_{ij}$ with $a_{ij}$ being the "proper" place in the coefficient matrix.
採用された回答
その他の回答 (1 件)
カテゴリ
ヘルプ センター および File Exchange で Spline Postprocessing についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!