永发信息网

matlab里的pp1=csape(X0,Y0)为什么括号里没有给边界类型?

答案:1  悬赏:10  手机版
解决时间 2021-11-25 12:52
matlab里的pp1=csape(X0,Y0)为什么括号里没有给边界类型?
最佳答案
查看help文件,可以得到如下解释:
pp = csape(x,y)
pp = csape(x,y,conds)

pp = csape(x,y)is the ppform of a cubic spline s with knot sequence x that satisfies s(x(j)) =y(:,j) for all j, as well as an additional end condition at the ends (meaningthe leftmost and at the rightmost data site), namely the default conditionlisted below. The data values y(:,j) may be scalars, vectors, matrices, evenND-arrays. Data values at the same data site are averaged.

pp =csape(x,y,conds) lets you choose the end conditions to be used, from a ratherlarge and varied catalog, by proper choice of conds. If needed, you supply thecorresponding end condition values as additional data values, with the first(last) data value taken as the end condition value at the left (right) end. Inother words, in that case, s(x(j)) matches y(:,j+1) for all j, and the variableendcondvals used in the detailed description below is set to y(:,[1 end]). Forsome choices of conds, these end condition values need not be present and/orare ignored when present.

Conds may be astring whose first character matches one of the following: 'complete' or'clamped', 'not-a-knot', 'periodic', 'second', 'variational', with thefollowing meanings.

'complete' or'clamped' Match endslopes (as given, with default as under"default'').

not-a-knot' Makesecond and second-last sites inactive knots (ignoring end condition values ifgiven).

'periodic' Match first and second derivatives atleft end with those at right end.

'second' Match end second derivatives (as given,with default [0 0], i.e., as in 'variational').

'variational' Setend second derivatives equal to zero (ignoring end condition values if given).

Default Match endslopes to the slope of the cubicthat matches the first four data at the respective end (i.e., Lagrange).

也就是说pp=csape(x,y)取的是默认方法“complete”或“clamped”,即m边界条件(具体参见数值分析书籍);此时端点斜率不知道,在matlab中是这样处理的:分别对两端的8个点x_0,x_1,x_2,x_3和x_n-3,x_n-2,x_n-1,x_n进行三次Lagrange插值得到L_a(x)和L_b(x),则S'(a)=L'_a(a)和S'(b)=L'_b(b)。
我要举报
如以上问答信息为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
大家都在看
RobinHood地址好找么,我有些事要过去,
去四儿子保养,给我用大桶装机油,什么情况
一个天平上有20克30克x克10克列方程
求紫薇斗数详批(各宫解析)谢谢
时间全用在汉译英的学习上,应该怎样使
我苹果手机桌面上icloud的图标没有了
为什么一般纳税人企业还要开普通发票
老鹰放出去还能回来吗
歌词里有没有说转移和无可避免
国内的耐克免税店比官网便宜吗
昨天经济之声新闻399元商标注册什么网站
2011款mlnlsuv是国五汽车排放标准吗
flexmulti d系列与flexmulti 标准型有什么区
汽车过湾是说的转向不足与转向过渡是什么原因
求助lcd.print输出变量的方法
推荐资讯
04吨比500千克。化简比
从大围工业区到田寮路口怎么坐公交车,最快需
读你不知道的三个朋友有感
经度纬度是什么意思
高三到底是在学校上晚自习好.还是在家比较好
我是新人啦 刚刚投入安防行业。想知道都有哪
给我推荐几部像辛德勒的名单、海上钢琴师、肖
高氧水150元1瓶,天价水你会喝吗
东方鸿智教育(南大街)地址在什么地方,想过去
请问不成立商业保理公司能否开展保理业务,只
我的win10系统安装不了ps软件是则么回事?
求分析下这个气动控制图
正方形一边上任一点到这个正方形两条对角线的
阴历怎么看 ?