Obtaining polynomial coefficients for a 3-D spline with data that are not a meshgrid
조회 수: 2 (최근 30일)
이전 댓글 표시
I have 200 of (y, x_1, x_2) and I'd like to fit a cubic smoothing spline of y on x_1 and x_2 to obtain the estimates of a_0, a_1, a_2 etc. where y=a_0+a_1*x_1+a_2*x_1*x_2 ... The csaps command does this for a 2-D spline, however for higher dimensions it requires input in the form of a meshgrid of (x_1, x_2) i.e. I need y values for every of meshgrid(x_1,x_2), which is not how my data come. The command scatteredInterpolant seems to take (y, x_1, x_2) as they come (not necessarily a meshgrid) but it does not split out coefficient estimates as output but instead just finer, interpolated points. Tried interp, interp2, spline etc as well but they don't work either. Is there a way to obtain coefficients of the polynomial of a 3-D spline in Matlab? Thank you!
댓글 수: 0
답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Splines에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!