Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Programming B-spline curve in Matlab from scratch

  1. Jan 25, 2012 #1
    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.
     

    Attached Files:

  2. jcsd
  3. Feb 27, 2012 #2
    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.
     
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook




Similar Discussions: Programming B-spline curve in Matlab from scratch
Loading...