matlab绘制均匀b样条曲线,在MATLAB中将数据拟合到B样条曲线

I am trying to estimate missing values in time-series data which is in the form of a matrix. The columns represent the time points,i.e. Now, I want to fit each row of the matrix to a B-Spline, and use it to estimate the missing values. I could fit the data to a normal spline using MATLAB, but I am completely stuck at trying to figure out how to fit the data to create a B-Spline. Using the default bspline function in the Curve Fitting Toolbox lets me set the knot vector to the vector of time points, but I cannot set the control points, i.e. the elements of the row.

Any help would be much appreciated.

EDIT: EXAMPLE ADDED

The time-series data has rows that look like this:

-0.11 0.1 0.01 0.06 0.04 -0.26 0.04 0.19 -0.22 -0.2 0.12 0.21 -0.26 -0.3 0.22 0.58 -0.36 0.13

My knot vector is basically the time points, and it looks like this:

0 7 14 21 28 35 42 49 56 63 70 77 84 91 98 105 112 119

Basically I want to use each row along with the knot vector to construct a B-Spline.

解决方案

what about these?

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值