How does a tensor product spline equation in MatLab code look like?

2 次查看(过去 30 天)
Hello,
can anyone help me to convert this equation :
into MatLab code, or provide me a comparable equation in MatLab code? I want to use this equation later on as "custom equation" in the "curve fitting tool". Thank you!

采纳的回答

Sachin Meena
Sachin Meena 2018-8-30
Hi Lukas. If I understand your problem correctly, I believe the documentation link that you have provided contains your answer. In the section "B-form of Tensor Product Splines", the command given
Sp = spmat({s,t},a);
does what you are asking for. Here, the number vectors [m,n] are acquired from the size of "a", the coefficient matrix provided. With size of "s" and "t" known and the number vectors acquired, it also gets the orders vector [h,k].
So the equation is now in variable Sp.
  6 个评论
Sachin Meena
Sachin Meena 2018-8-31
Hey Lukas, it turns out that your use case is not yet supported by the cftool. The issue with using
spmat({s,t},a)
is that it does not explicitly uses "x" and "y", while the issue with using
spapi({s,t},[h,k],{x,y},z)
is that the dependent variable "z" cannot occur on both sides of the equation.

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Get Started with Curve Fitting Toolbox 的更多信息

产品


版本

R2018a

Community Treasure Hunt

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

Start Hunting!

Translated by