Programming B-spline curve in Matlab from scratch

Join the discussion
Ask a follow-up here, or get your own question answered by working scientists, mathematicians and engineers — people, not an autocomplete.
Real named experts · corrections over time · the nuance an AI answer skips
1 reply · 8K views
roldy
Messages
206
Reaction score
2
I decided to write my problem and attach as a separate document so that everything was included and would leave room here to discuss my problem.

From what I understand from the equations is that for each value of u I calculate the value of the basis function for each basis function i. Then this is multiplied by the control point. This is done for each order k. The thing that I don't understand is that how can I pull this off if u is the inner most loop? I'm not sure the proper placement of the blending function P(u).

Could someone take a look at my code and logic and see if there is another way of doing this or shoot me some pointers? It would be greatly appreciated.
 

Attachments

Physics news on Phys.org
hi my friend, :)
I see your code.
I test it and it works good,but did you write a MATLAB code for using Basis-function to plot B-spline curve?!
could you upload it for me?
thanks.