How to make a curve smooth in spline block
6 views (last 30 days)
Show older comments
dk2507 on 28 Feb 2017
Commented: Massimo Zanetti on 28 Feb 2017
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.
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:
Glad to know you have fixed. If this answer helped you, please accept it.
Find more on Spline Postprocessing in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!