Programming B-spline curve in Matlab from scratch

Click For Summary
SUMMARY

The discussion focuses on programming B-spline curves in MATLAB from scratch, specifically addressing the calculation of basis functions for varying values of parameter u. The user seeks clarification on the implementation of the blending function P(u) within the loop structure of their code. Another participant confirms that the initial code works well but requests the MATLAB code used for plotting the B-spline curve with the basis function.

PREREQUISITES
  • Understanding of B-spline curves and their mathematical formulation
  • Proficiency in MATLAB programming language
  • Familiarity with control points and basis functions in spline theory
  • Knowledge of loop structures and function placement in programming
NEXT STEPS
  • Research how to implement B-spline basis functions in MATLAB
  • Learn about the mathematical properties of B-spline curves
  • Explore MATLAB's plotting functions for visualizing curves
  • Investigate optimization techniques for B-spline calculations in MATLAB
USEFUL FOR

Mathematics enthusiasts, MATLAB programmers, and anyone interested in computer graphics or curve modeling using B-splines.

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.
 

Similar threads

  • · Replies 2 ·
Replies
2
Views
4K
  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 32 ·
2
Replies
32
Views
4K
  • · Replies 1 ·
Replies
1
Views
12K
  • · Replies 10 ·
Replies
10
Views
3K
  • · Replies 22 ·
Replies
22
Views
4K
  • · Replies 4 ·
Replies
4
Views
8K
  • · Replies 9 ·
Replies
9
Views
4K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 8 ·
Replies
8
Views
3K