fnbrk
Name and part(s) of form
Syntax
着干活,…outn] = fnbrk (f, part1…,partm)
fnbrk (f,interval)
fnbrk(pp,j)
fnbrk (f)
Description
着干活,…outn] = fnbrk (f, part1…,partm)
returns the part(s) of the form inf
specified bypart1,...,partn
(assuming thatn<=m
). These are the parts used when the form was put together, inspmak
or页mak
orrpmak
orrsmak
orstmak
, but also other parts derived from these.
You only need to specify the beginning character(s) of the relevant option.
Regardless of what particular formf
is in,parti
can be one of the following, specified as a character vector or string scalar.
|
The particular form used |
|
The dimension of the function's domain |
|
The dimension of the function's target |
|
The coefficients in that particular form |
|
The basic interval of that form |
Depending on the form inf
, additional parts may be asked for.
Iff
is in B-form (or BBform or rBform), then additional choices forparti
are
|
The knot sequence |
|
The B-spline coefficients |
|
The number of coefficients |
|
The polynomial order of the spline |
Iff
is in ppform (or rpform), then additional choices forparti
are
|
The break sequence |
|
The local polynomial coefficients |
|
The number of polynomial pieces |
|
The polynomial order of the spline |
|
The local polynomial coefficients, but in the form needed for |
If the function inf
is multivariate, then the corresponding multivariate parts are returned. This means, e.g., that knots, breaks, and the basic interval, are cell arrays, the coefficient array is, in general, higher than two-dimensional, and order, number and pieces are vectors.
Iff
is in stform, then additional choices forparti
are
|
The centers |
|
The coefficients |
|
系数或条款 |
|
The particular type |
fnbrk (f,interval)
withinterval
a 1-by-2 matrix[a b]
withadoes not return a particular part. Rather, it returns a description of the univariate function described by
f
and in the same form but with the basic interval changed, to the interval given. If, instead,interval
is[ ]
,f
is returned unchanged. This is of particular help when the function inf
ism-variate, in which caseinterval
must be a cell array withmentries, with theith entry specifying the desired interval in theith dimension. If thatith entry is[ ]
, the basic interval in theith dimension is unchanged.
fnbrk(pp,j)
, with页
the ppform of a univariate function andj
a positive integer, does not return a particular part, but returns the ppform of thej
th polynomial piece of the function in页
. If页
is the ppform of anm-variate function, thenj
must be a cell array of lengthm. In that case, each entry ofj
must be a positive integer or else an interval, to single out a particular polynomial piece or else to specify the basic interval in that dimension.
fnbrk (f)
returns nothing, but a description of the various parts of the form is printed at the command line instead.
Examples
Ifp1
andp2
contain the B-form of two splines of the same order, with the same knot sequence, and the same target dimension, then
p1plusp2 = spmak(fnbrk(p1,'k'),fnbrk(p1,'c')+fnbrk(p2,'c'));
provides the (pointwise) sum of those two functions.
If页
contains the ppform of a bivariate spline with at least four polynomial pieces in the first variable, then页p=fnbrk(pp,{4,[-1 1]})
gives the spline that agrees with the spline in页
on the rectangle [b4
..b5
] x [-
1 .. 1] , whereb4
,b5
are the fourth and fifth entry in the break sequence for the first variable.