subsref
Evaluate the spline with function-call syntax or defer to built-in indexing.
Declaration
varargout = subsref(self,index)
Parameters
selfBSpline instanceindexMATLAB subscript structure
Returns
varargoutindexed property access or spline values
Discussion
Parentheses indexing spline(t) is redirected to valueAtPoints(...), while dot indexing behaves like the default MATLAB handle-class implementation.
Use spline(t) for values. For derivatives, use valueAtPoints(t, D=...).
x = spline(tQuery);
dxdt = spline.valueAtPoints(tQuery, D=1);