s
Station grid or path-parameter samples. Use a real finite vector; station-grid inputs are usually strictly increasing.
b = copp.interpolation.a_to_b_topp2(s, a)
Returns the piecewise edge acceleration profile associated with node values A, where A(k) stores \((ds/dt)^2\) at station S(k). S and A must be real finite vectors of the same length N; row or column inputs are accepted. B is returned as an (N-1)-by-1 double column vector because TOPP2 b is interval-based.
sStation grid or path-parameter samples. Use a real finite vector; station-grid inputs are usually strictly increasing.
aSecond-order node profile. Element a(k) stores the squared path speed \((ds/dt)^2\) at station s(k).
bInterval or edge acceleration profile. For TOPP2 interpolation this is an (N-1)-by-1 column vector.
s = linspace(0, 1, 5).'; a = [0; 0.5; 1.0; 0.5; 0]; b = copp.interpolation.a_to_b_topp2(s, a); disp(b)