Thread Subject: B-Spline basis function extraction

Subject: B-Spline basis function extraction

From: fajar

Date: 18 May, 2008 04:39:58

Message: 1 of 4


Hi,

Given a knot sequence, I want to obtain the collection basis funtions
for the B-Spline that will stand on the knots. I thought the command
'bspline' would do it, but not.

Anyone?


Fajar

Subject: B-Spline basis function extraction

From: Bruno Luong

Date: 18 May, 2008 08:28:02

Message: 2 of 4

fajar <fajar96te@yahoo.com> wrote in message
> I thought the command
> 'bspline' would do it, but not.
>

help spline

Bruno

Subject: B-Spline basis function extraction

From: Lastocka Koshka

Date: 23 May, 2008 17:04:01

Message: 3 of 4

fajar <fajar96te@yahoo.com> wrote in message
<a5a66d2a-b0a5-4d47-8642-a5608bf0e734@b5g2000pri.googlegroups.com>...
>
> Hi,
>
> Given a knot sequence, I want to obtain the collection
basis funtions
> for the B-Spline that will stand on the knots. I thought
the command
> 'bspline' would do it, but not.
>
> Anyone?
>
>
> Fajar

Hello,

I'm also working on B-Splines now. You have to apply the
command 'spmak' to your knot sequence like

fnplt(spmak(0:10,1));

The command 'fnplt' plot it then.

I have one different problem which 3 dimensional Basis
Splines. If you have the solution for my question 'Picture
of Basis Splines.

Good luck!



Subject: B-Spline basis function extraction

From: Guillaume Obozinski

Date: 8 Jul, 2008 01:02:22

Message: 4 of 4

Say I want to have 10 knots and splines of order 3, with the support
of each of the splines being [-1 2],[0 3],...,[8 11]
You can use the function spmak to generate a B-spline function of
dimension 10 that has a coefficient of 1 on each of the knots like
this

>> myspline=spmak(-1:11,eye(10))

myspline =

      form: 'B-'
     knots: [-1 0 1 2 3 4 5 6 7 8 9 10 11]
     coefs: [10x10 double]
    number: 10
     order: 3
       dim: 10

Each of the dimensions corresponds to an element of the basis

To visualize, then do for example
>> x=-1:0.1:11;
>> y=spval(myspline,x);
>> plot(x,y);

Tags for this Thread

Add a New Tag:

Separated by commas
Ex.: root locus, bode

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

rssFeed for this Thread

Public Submission Policy

NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content. Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available via MATLAB Central. Read the complete Disclaimer prior to use.

Contact us at files@mathworks.com