curve fitting - How can I make a B spline with specific values of 1st derivative at breakpoints (not only ends) using MATLAB? -


i used csape function in curve fitting toolbox, enables user of choosing derivative values @ both ends.

is there way control value of derivative specific breakpoint?

i want set 1 of values of derivatives 0 @ 1 breakpoint, make maximum.

here code:

%% times k=0; tc = 1; %step time in second td = .15*tc; %the dsp time t0=k*tc; t1=t0+td; t2=t0+tc; t3=t2+td; tm=.5*tc;  tmaxh=t0+tm;  %% z height hgs=0; hge=0; hao=.12; lan=.079; laf=.2; lab=.05; ds=.6; lao=.6667*ds;  qb=10; qf=10;  %% spline generation using cublic spline. tt=[t0 t1 tmaxh t2 t3]; zz=[hgs+lan hgs+laf*sind(qb)+lan*cosd(qb) hao hge+lab*sind(qf)+lan*cosd(qf) hge+lan]; cs = csape(tt,zz,[1 0 0 0 1],[0 0 0 0 0]) figure fnplt(cs) 

after comment %% spline generation using cubic spline. have 2 vectors 1 time , 1 value changes time , want make b-spline of 3rd order.

i used csape because enables user determine value of derivatives @ end points.cs = csape(tt,zz,[1 0 0 0 1],[0 0 0 0 0]) ones tell tool make 1st derivative @ end points = 0.

i want point occurs @ time = tmaxh maximum point on spline.

i tried making placing 1 in [1 0 0 0 1] become [1 0 1 0 1] know 1st derivative @ maximum 0, method didn't work me.

thank you.


Comments

Popular posts from this blog

javascript - Laravel datatable invalid JSON response -

java - Exception in thread "main" org.springframework.context.ApplicationContextException: Unable to start embedded container; -

sql server 2008 - My Sql Code Get An Error Of Msg 245, Level 16, State 1, Line 1 Conversion failed when converting the varchar value '8:45 AM' to data type int -