How to make a curve smooth in spline block
6 views (last 30 days)
Hi, i need to make a cam model in simulink so i use a spline block to model the curve.Here is my code:
But the curve is not smooth,please tell me what is the problem.
Massimo Zanetti on 28 Feb 2017
If you want to approximate a set of points by a smooth curve you need a smoothing spline, not just a spline. Moreover, in your case you need the smoothing spline to be a closed curve, therefore with periodic conditions.
I have done a function to do exactly that, check it out: