Cody

Solution 820313

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 = 184 idx = 214 idx = 272 idx = 52 idx = 2 idx = 182 idx = 260 idx = 119 idx = 61 idx = 98 idx = 123 idx = 121 idx = 282 idx = 213 idx = 33 idx = 7 idx = 210 idx = 301 idx = 230 idx = 115 idx = 226 idx = 240 idx = 165 idx = 256 idx = 73 idx = 189 idx = 149 idx = 170 idx = 43 idx = 78 idx = 62 idx = 299 idx = 112 idx = 217 idx = 117 idx = 139 idx = 71 idx = 65 idx = 231 idx = 267 idx = 223 idx = 272 idx = 202 idx = 182 idx = 185 idx = 236 idx = 9 idx = 271 idx = 112 idx = 37 idx = 195 idx = 92 idx = 301 idx = 126 idx = 109 idx = 282 idx = 68 idx = 156 idx = 156 idx = 45 idx = 6 idx = 182 idx = 166 idx = Empty matrix: 1-by-0

Assertion failed.