PiecewiseLinearFunction in MatLab
Posted: Wed Dec 21, 2016 1:44 am
Hello, again me, and again with a similar issue,
i want to create a linear function for the force in MatLab - the c++ code looks so:
In MatLab i can acces to the constructor like:
i want to create a linear function for the force in MatLab - the c++ code looks so:
Code: Select all
PiecewiseLinearFunction *forceX = new PiecewiseLinearFunction(2, time, fXofT);
but how can i add the parameters time and fXofT in MatLab??Force = PieceWiseLinearFunction();