Sie sind auf Seite 1von 2

6/19/12

Analysis of Numerical Algorithms

Analysis of Numerical Algorithms index.php

Matlab B-spline Example


%Bsln eape1 -pie xml %Eaut adpo acbcBsln cre rle o pse vlae n lt ui -pie uv; eis n otd %Bsln. ruie -piem otn. %Eel sae kos wt 4mr kosta yvle vny pcd nt, ih oe nt hn -aus t=[ 1234567891 1 1 1] 0 0 1 2 3; v = y [ 1366411 3 0; 0 ] n=sz(,) iet2; %eaut a anme o pit frpotn vlae t ubr f ons o ltig q =Bpiet v,.) y sln(, y 1; %Po o Bsln hsti [_,t{-} lt f -pie a n t4 _n3] u=t4:. :tn3; () 1 (-) po((:-) v,'-,u q,''; ltt3n2, y -' , y -) xae(t) lbl''; yae(y) lbl''; lgn(cnrlplgn,'-piecre) eed'oto oyo' Bsln uv';

2012 Regents of the University of Minnesota. All rights reserved. The University of Minnesota is an equal opportunity educator and employer Last modified on March 4, 2011

%Bsln eape2 -pie xml %Eaut adpo acbcBsln prmti cre rle vlae n lt ui -pie aaerc uv; eis %o pse Bpiemruie n otd sln. otn. %Eel sae kos wt 4mr kosta cnrlpit vny pcd nt, ih oe nt hn oto ons t=[ 1234567891 1 1 1] 0 0 1 2 3; v = x [ 8975212 5 8; 5 ] v = y [ 1336411 3 0; 0 ] %eaut a anme o pit frpotn vlae t ubr f ons o ltig q =Bpiet v,.) x sln(, x 1; q =Bpiet v,.) y sln(, y 1; po(x v,'-,q,q,''; ltv, y -' x y -) xae(t) lbl''; yae(y) lbl''; lgn(cnrlplgn,'-piecre) eed'oto oyo' Bsln uv';

www-users.cselabs.umn.edu/classes/Spring-2011/csci5302/index.php?page=./Notes/bspl

1/2

6/19/12

Analysis of Numerical Algorithms

www-users.cselabs.umn.edu/classes/Spring-2011/csci5302/index.php?page=./Notes/bspl

2/2

Das könnte Ihnen auch gefallen