Cody

Solution 2164025

Submitted on 18 Mar 2020
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

sig = Columns 1 through 18 -72.6052 -71.6149 -70.6313 -69.6545 -68.6843 -67.7209 -66.7642 -65.8143 -64.8711 -63.9346 -63.0048 -62.0818 -61.1655 -60.2559 -59.3531 -58.4569 -57.5676 -56.6849 Columns 19 through 36 -55.8090 -54.9398 -54.0773 -53.2215 -52.3725 -51.5302 -50.6947 -49.8658 -49.0437 -48.2283 -47.4197 -46.6178 -45.8226 -45.0341 -44.2524 -43.4774 -42.7091 -41.9476 Columns 37 through 54 -41.1928 -40.4447 -39.7033 -38.9687 -38.2408 -37.5196 -36.8052 -36.0974 -35.3965 -34.7022 -34.0147 -33.3339 -32.6598 -31.9924 -31.3318 -30.6779 -30.0308 -29.3904 Columns 55 through 72 -28.7567 -28.1297 -27.5094 -26.8959 -26.2891 -25.6891 -25.0957 -24.5091 -23.9293 -23.3561 -22.7897 -22.2300 -21.6771 -21.1308 -20.5913 -20.0586 -19.5325 -19.0132 Columns 73 through 90 -18.5006 -17.9948 -17.4956 -17.0033 -16.5176 -16.0386 -15.5664 -15.1009 -14.6422 -14.1902 -13.7449 -13.3063 -12.8744 -12.4493 -12.0310 -11.6193 -11.2144 -10.8162 Columns 91 through 108 -10.4247 -10.0400 -9.6619 -9.2907 -8.9261 -8.5683 -8.2172 -7.8728 -7.5352 -7.2043 -6.8801 -6.5626 -6.2519 -5.9479 -5.6506 -5.3601 -5.0763 -4.7992 Columns 109 through 126 -4.5289 -4.2652 -4.0083 -3.7957 -3.5147 -3.2780 -3.0480 -2.8248 -2.6083 -2.3985 -2.1954 -1.9991 -1.8094 -1.6266 -1.4504 -1.2810 -1.1183 -0.9623 Columns 127 through 144 -0.8131 -0.6706 -0.5348 -0.4058 -0.2834 -0.1678 -0.0590 0.0432 0.1386 0.2273 0.3092 0.3844 0.4529 0.5147 0.5697 0.6180 0.6596 0.6945 Columns 145 through 162 0.7226 0.7440 0.7586 0.7666 0.7678 0.7623 0.7500 0.7310 0.7053 0.6729 0.6337 0.5878 0.5352 0.4759 0.4098 0.3370 0.2574 0.1712 Columns 163 through 180 0.0782 -0.0216 -0.1280 -0.2412 -0.3611 -0.4877 -0.6211 -0.7612 -0.9080 -1.0616 -1.2219 -1.3889 -1.5626 -1.7431 -1.9303 -2.1242 -2.3248 -2.5322 Columns 181 through 198 -2.7463 -2.9672 -3.1947 -3.4290 -3.6701 -3.9178 -4.1723 -4.4335 -4.7015 -4.9761 -5.2575 -5.5456 -5.8405 -6.1421 -6.4504 -6.7654 -7.0872 -7.4157 Columns 199 through 216 -7.7509 -8.0929 -8.4416 -8.7970 -9.1591 -9.5280 -9.9036 -10.2859 -10.6750 -11.0708 -11.4733 -11.8825 -12.2985 -12.7212 -13.1506 -13.5868 -14.0296 -14.4793 Columns 217 through 234 -14.9356 -15.3987 -15.8685 -16.3450 -16.8283 -17.3182 -17.8150 -18.3184 -18.8286 -19.3455 -19.8691 -20.3995 -20.9365 -21.4804 -22.0309 -22.5882 -23.1522 -23.7229 Columns 235 through 252 -24.3004 -24.8845 -25.4755 -26.0731 -26.6775 -27.2886 -27.9064 -28.5310 -29.1623 -29.8003 -30.4450 -31.0965 -31.7547 -32.4196 -33.0913 -33.7697 -34.4548 -35.1466 Columns 253 through 270 -35.8452 -36.5505 -37.2625 -37.9813 -38.7068 -39.4390 -40.1780 -40.9236 -41.6760 -42.4352 -43.2010 -43.9736 -44.7529 -45.5390 -46.3318 -47.1313 -47.9375 -48.7505 Columns 271 through 288 -49.5701 -50.3966 -51.2297 -52.0696 -52.9162 -53.7695 -54.6296 -55.4964 -56.3699 -57.2501 -58.1371 -59.0308 -59.9313 -60.8384 -61.7523 -62.6729 -63.6003 -64.5344 Columns 289 through 306 -65.4752 -66.4227 -67.3770 -68.3380 -69.3057 -70.2801 -71.2613 -72.2492 -73.2439 -74.2452 -75.2533 -76.2681 -77.2897 -78.3180 -79.3530 -80.3947 -81.4432 -82.4984 Columns 307 through 308 -83.5603 -84.6289

Output argument "idx" (and maybe others) not assigned during call to "findAJerk". Error in Test1 (line 9) assert(any(abs(findAJerk(sig) - breakPoint)<=6)) % extra wide window out of kindness

Suggested Problems

More from this Author1