Using the as-written code for walking.m example, the following error occurs:
Error using mstraj (line 78)
Length of TSEG does not match number
of segments
Error in walking (line 85)
x = mstraj(segments, [], tseg,
segments(1,:), 0.01, 0.1);
@petercorke, it appears that the length of 'tseg' is 9 and the length of 'segments' is 8. How should this be addressed in order to be what you had originally intended?
Using the as-written code for walking.m example, the following error occurs:
Error using mstraj (line 78) Length of TSEG does not match number of segments
Error in walking (line 85) x = mstraj(segments, [], tseg, segments(1,:), 0.01, 0.1);
@petercorke, it appears that the length of 'tseg' is 9 and the length of 'segments' is 8. How should this be addressed in order to be what you had originally intended?