Cody

# Problem 561. Find the jerk

Solution 820330

Submitted on 4 Feb 2016
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.

### Test Suite

Test Status Code Input and Output
1   Fail
%% h = 0.065; % stepsize t = -10:h:10; for tr = 1:1000 sigCoefs = 2*rand(1,3)-1; sig = polyval(sigCoefs,t); breakPoint = randi(length(sig)-2)+1; sig(breakPoint) = (1.01)*sig(breakPoint); assert(any(abs(findAJerk(sig) - breakPoint)<=6)) % extra wide window out of kindness end

idx = 75 idx = 301 idx = 57 idx = 224 idx = 10 idx = 184 idx = 140 idx = 73 idx = 108 idx = 38 idx = 234 idx = 79 idx = 293 idx = 102 idx = 287 idx = 67 idx = 276 idx = 43 idx = 223 idx = 265 idx = 183 idx = 107 idx = 129 idx = 91 idx = 237 idx = 39 idx = 77 idx = 213 idx = 58 idx = 9 idx = 199 idx = 21 idx = 205 idx = 278 idx = 218 idx = 57 idx = 191 idx = 270 idx = 47 idx = 105 idx = 70 idx = 46 idx = 176 idx = 293 idx = 130 idx = 299 idx = 51 idx = 201 idx = 92 idx = 95 idx = 202 idx = 78 idx = 134 idx = 53 idx = 302 idx = 30 idx = 118 idx = 215 idx = 241 idx = 100 idx = 126 idx = 28 idx = 33 idx = 185 idx = 260 idx = 36 idx = 191 idx = 271 idx = 91 idx = 112 idx = 154 idx = 186 idx = 129 idx = 19 idx = 112 idx = 100 idx = 256 idx = 279 idx = 17 idx = 279 idx = 72 idx = 103 idx = 122 idx = 39 idx = 229 idx = 171 idx = 44 idx = 60 idx = 137 idx = 206 idx = 279 idx = 272 idx = 88 idx = 149 idx = 57 idx = 111 idx = 175 idx = 227 idx = 289 idx = 276 idx = 157 idx = Empty matrix: 1-by-0

Assertion failed.