Peter Nachtwey
Member
I have been on this and other forums for a long time now. 20+ years. I see the same thing over and over again. Matlab users are very bad. They get answers without understanding.Such a fiery speech...
@MaxK, did you recognize the least-squares algorithm?
What about Runge-Kutta? It is easy to restart if a boundary is hit. It isn't the most accurate but when working on real data that isn't accurate to 6 decimal places, it doesn't make much difference. It is simple enough to write on your own and implement in a motion controller. It may be tedious in a PLC. Mathcad does have a RK function.Although I have to admit that I agree with this speech... (Although the Runge-Kuta method...)
Because I see the same thing over and over again and the OPs don't provide the information needed up front. The OP just needs to decide what he wants to do. I have provided two algorithms now. One that is a least squares fit and another that will go exactly through the data points ( knots ).In any case, the engineer would have stated the requirements and constraints from the process side, rather than what is stated in #1….
But you know this without me - so the question is: why did you burst into such a fiery speech?
Yes, but what gets me is that everyone comes to the forum thinking they are the first to have their particular problem when it has all be solved long ago.PS I don’t entertain myself with the illusion of being able to change the world. Human laziness is a circumstance that cannot be overcome
No one can refute that.
Also, drbitboy wasn't doing a good job of extracting teeth.