Cody

Problem 3064. Cycling — Normalized Power

Solution 2687114

Submitted on 13 Jul 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
power = 200*ones(1,3600); P_avg_corr = 200; NP_corr = 200; [P_avg,NP] = cycling_norm_power(power); assert(isequal(P_avg_corr,P_avg)) assert(isequal(NP_corr,NP))

ans = 1.0e+09 * Columns 1 through 18 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 Columns 19 through 36 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 Columns 37 through 54 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 Columns 55 through 72 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 Columns 73 through 90 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 Columns 91 through 108 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 Columns 109 through 126 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 Columns 127 through 144 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 Columns 145 through 162 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 Columns 163 through 180 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 Columns 181 through 198 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 Columns 199 through 216 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 Columns 217 through 234 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 Columns 235 through 252 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 Columns 253 through 270 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 Columns 271 through 288 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 Columns 289 through 306 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 Columns 307 through 324 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 Columns 325 through 342 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 Columns 343 through 360 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 Columns 361 through 378 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 Columns 379 through 396 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 Columns 397 through 414 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 Columns 415 through 432 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 Columns 433 through 450 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 Columns 451 through 468 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 Columns 469 through 486 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 Columns 487 through 504 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 Columns 505 through 522 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 Columns 523 through 540 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 Columns 541 through 558 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 Columns 559 through 576 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 Columns 577 through 594 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 Columns 595 through 612 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 Columns 613 through 630 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 Columns 631 through 648 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 Columns 649 through 666 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 Columns 667 through 684 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 Columns 685 through 702 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 Columns 703 through 720 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 Columns 721 through 738 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 Columns 739 through 756 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 Columns 757 through 774 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 Columns 775 through 792 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 Columns 793 through 810 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 Columns 811 through 828 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 Columns 829 through 846 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 Columns 847 through 864 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 1.6000 ...

Output argument "P_avg" (and maybe others) not assigned during call to "cycling_norm_power". Error in Test1 (line 4) [P_avg,NP] = cycling_norm_power(power);

2   Fail
power = 100*ones(1,60); power = [power 250*ones(1,240)]; power = [power 100*ones(1,60)]; power = repmat(power,[1,10]); P_avg_corr = 200; NP_corr = 227; [P_avg,NP] = cycling_norm_power(power); assert(isequal(P_avg_corr,P_avg)) assert(isequal(NP_corr,NP))

ans = 1.0e+09 * Columns 1 through 18 0.1000 0.1000 0.1000 0.1000 0.1000 0.1000 0.1000 0.1000 0.1000 0.1000 0.1000 0.1000 0.1000 0.1000 0.1000 0.1000 0.1000 0.1000 Columns 19 through 36 0.1000 0.1000 0.1000 0.1000 0.1000 0.1000 0.1000 0.1000 0.1000 0.1000 0.1000 0.1000 0.1000 0.1000 0.1000 0.1000 0.1000 0.1000 Columns 37 through 54 0.1000 0.1000 0.1000 0.1000 0.1000 0.1000 0.1000 0.1000 0.1000 0.1000 0.1216 0.1464 0.1749 0.2074 0.2441 0.2856 0.3322 0.3842 Columns 55 through 72 0.4421 0.5062 0.5772 0.6554 0.7412 0.8352 0.9379 1.0498 1.1714 1.3032 1.4459 1.6000 1.7661 1.9448 2.1368 2.3426 2.5629 2.7984 Columns 73 through 90 3.0498 3.3178 3.6030 3.9062 3.9062 3.9062 3.9062 3.9062 3.9062 3.9062 3.9062 3.9062 3.9062 3.9062 3.9062 3.9062 3.9062 3.9062 Columns 91 through 108 3.9062 3.9062 3.9062 3.9062 3.9062 3.9062 3.9062 3.9062 3.9062 3.9062 3.9062 3.9062 3.9062 3.9062 3.9062 3.9062 3.9062 3.9062 Columns 109 through 126 3.9062 3.9062 3.9062 3.9062 3.9062 3.9062 3.9062 3.9062 3.9062 3.9062 3.9062 3.9062 3.9062 3.9062 3.9062 3.9062 3.9062 3.9062 Columns 127 through 144 3.9062 3.9062 3.9062 3.9062 3.9062 3.9062 3.9062 3.9062 3.9062 3.9062 3.9062 3.9062 3.9062 3.9062 3.9062 3.9062 3.9062 3.9062 Columns 145 through 162 3.9062 3.9062 3.9062 3.9062 3.9062 3.9062 3.9062 3.9062 3.9062 3.9062 3.9062 3.9062 3.9062 3.9062 3.9062 3.9062 3.9062 3.9062 Columns 163 through 180 3.9062 3.9062 3.9062 3.9062 3.9062 3.9062 3.9062 3.9062 3.9062 3.9062 3.9062 3.9062 3.9062 3.9062 3.9062 3.9062 3.9062 3.9062 Columns 181 through 198 3.9062 3.9062 3.9062 3.9062 3.9062 3.9062 3.9062 3.9062 3.9062 3.9062 3.9062 3.9062 3.9062 3.9062 3.9062 3.9062 3.9062 3.9062 Columns 199 through 216 3.9062 3.9062 3.9062 3.9062 3.9062 3.9062 3.9062 3.9062 3.9062 3.9062 3.9062 3.9062 3.9062 3.9062 3.9062 3.9062 3.9062 3.9062 Columns 217 through 234 3.9062 3.9062 3.9062 3.9062 3.9062 3.9062 3.9062 3.9062 3.9062 3.9062 3.9062 3.9062 3.9062 3.9062 3.9062 3.9062 3.9062 3.9062 Columns 235 through 252 3.9062 3.9062 3.9062 3.9062 3.9062 3.9062 3.9062 3.9062 3.9062 3.9062 3.9062 3.9062 3.9062 3.9062 3.9062 3.9062 3.9062 3.9062 Columns 253 through 270 3.9062 3.9062 3.9062 3.9062 3.9062 3.9062 3.9062 3.9062 3.9062 3.9062 3.9062 3.9062 3.9062 3.9062 3.9062 3.9062 3.9062 3.9062 Columns 271 through 288 3.9062 3.9062 3.9062 3.9062 3.9062 3.9062 3.9062 3.9062 3.9062 3.9062 3.9062 3.9062 3.9062 3.9062 3.9062 3.9062 3.6030 3.3178 Columns 289 through 306 3.0498 2.7984 2.5629 2.3426 2.1368 1.9448 1.7661 1.6000 1.4459 1.3032 1.1714 1.0498 0.9379 0.8352 0.7412 0.6554 0.5772 0.5062 Columns 307 through 324 0.4421 0.3842 0.3322 0.2856 0.2441 0.2074 0.1749 0.1464 0.1216 0.1000 0.1000 0.1000 0.1000 0.1000 0.1000 0.1000 0.1000 0.1000 Columns 325 through 342 0.1000 0.1000 0.1000 0.1000 0.1000 0.1000 0.1000 0.1000 0.1000 0.1000 0.1000 0.1000 0.1000 0.1000 0.1000 0.1000 0.1000 0.1000 Columns 343 through 360 0.1000 0.1000 0.1000 0.1000 0.1000 0.1000 0.1000 0.1000 0.1000 0.1000 0.1000 0.1000 0.1000 0.1000 0.1000 0.1000 0.1000 0.1000 Columns 361 through 378 0.1000 0.1000 0.1000 0.1000 0.1000 0.1000 0.1000 0.1000 0.1000 0.1000 0.1000 0.1000 0.1000 0.1000 0.1000 0.1000 0.1000 0.1000 Columns 379 through 396 0.1000 0.1000 0.1000 0.1000 0.1000 0.1000 0.1000 0.1000 0.1000 0.1000 0.1000 0.1000 0.1000 0.1000 0.1000 0.1000 0.1000 0.1000 Columns 397 through 414 0.1000 0.1000 0.1000 0.1000 0.1000 0.1000 0.1000 0.1000 0.1000 0.1000 0.1216 0.1464 0.1749 0.2074 0.2441 0.2856 0.3322 0.3842 Columns 415 through 432 0.4421 0.5062 0.5772 0.6554 0.7412 0.8352 0.9379 1.0498 1.1714 1.3032 1.4459 1.6000 1.7661 1.9448 2.1368 2.3426 2.5629 2.7984 Columns 433 through 450 3.0498 3.3178 3.6030 3.9062 3.9062 3.9062 3.9062 3.9062 3.9062 3.9062 3.9062 3.9062 3.9062 3.9062 3.9062 3.9062 3.9062 3.9062 Columns 451 through 468 3.9062 3.9062 3.9062 3.9062 3.9062 3.9062 3.9062 3.9062 3.9062 3.9062 3.9062 3.9062 3.9062 3.9062 3.9062 3.9062 3.9062 3.9062 Columns 469 through 486 3.9062 3.9062 3.9062 3.9062 3.9062 3.9062 3.9062 3.9062 3.9062 3.9062 3.9062 3.9062 3.9062 3.9062 3.9062 3.9062 3.9062 3.9062 Columns 487 through 504 3.9062 3.9062 3.9062 3.9062 3.9062 3.9062 3.9062 3.9062 3.9062 3.9062 3.9062 3.9062 3.9062 3.9062 3.9062 3.9062 3.9062 3.9062 Columns 505 through 522 3.9062 3.9062 3.9062 3.9062 3.9062 3.9062 3.9062 3.9062 3.9062 3.9062 3.9062 3.9062 3.9062 3.9062 3.9062 3.9062 3.9062 3.9062 Columns 523 through 540 3.9062 3.9062 3.9062 3.9062 3.9062 3.9062 3.9062 3.9062 3.9062 3.9062 3.9062 3.9062 3.9062 3.9062 3.9062 3.9062 3.9062 3.9062 Columns 541 through 558 3.9062 3.9062 3.9062 3.9062 3.9062 3.9062 3.9062 3.9062 3.9062 3.9062 3.9062 3.9062 3.9062 3.9062 3.9062 3.9062 3.9062 3.9062 Columns 559 through 576 3.9062 3.9062 3.9062 3.9062 3.9062 3.9062 3.9062 3.9062 3.9062 3.9062 3.9062 3.9062 3.9062 3.9062 3.9062 3.9062 3.9062 3.9062 Columns 577 through 594 3.9062 3.9062 3.9062 3.9062 3.9062 3.9062 3.9062 3.9062 3.9062 3.9062 3.9062 3.9062 3.9062 3.9062 3.9062 3.9062 3.9062 3.9062 Columns 595 through 612 3.9062 3.9062 3.9062 3.9062 3.9062 3.9062 3.9062 3.9062 3.9062 3.9062 3.9062 3.9062 3.9062 3.9062 3.9062 3.9062 3.9062 3.9062 Columns 613 through 630 3.9062 3.9062 3.9062 3.9062 3.9062 3.9062 3.9062 3.9062 3.9062 3.9062 3.9062 3.9062 3.9062 3.9062 3.9062 3.9062 3.9062 3.9062 Columns 631 through 648 3.9062 3.9062 3.9062 3.9062 3.9062 3.9062 3.9062 3.9062 3.9062 3.9062 3.9062 3.9062 3.9062 3.9062 3.9062 3.9062 3.6030 3.3178 Columns 649 through 666 3.0498 2.7984 2.5629 2.3426 2.1368 1.9448 1.7661 1.6000 1.4459 1.3032 1.1714 1.0498 0.9379 0.8352 0.7412 0.6554 0.5772 0.5062 Columns 667 through 684 0.4421 0.3842 0.3322 0.2856 0.2441 0.2074 0.1749 0.1464 0.1216 0.1000 0.1000 0.1000 0.1000 0.1000 0.1000 0.1000 0.1000 0.1000 Columns 685 through 702 0.1000 0.1000 0.1000 0.1000 0.1000 0.1000 0.1000 0.1000 0.1000 0.1000 0.1000 0.1000 0.1000 0.1000 0.1000 0.1000 0.1000 0.1000 Columns 703 through 720 0.1000 0.1000 0.1000 0.1000 0.1000 0.1000 0.1000 0.1000 0.1000 0.1000 0.1000 0.1000 0.1000 0.1000 0.1000 0.1000 0.1000 0.1000 Columns 721 through 738 0.1000 0.1000 0.1000 0.1000 0.1000 0.1000 0.1000 0.1000 0.1000 0.1000 0.1000 0.1000 0.1000 0.1000 0.1000 0.1000 0.1000 0.1000 Columns 739 through 756 0.1000 0.1000 0.1000 0.1000 0.1000 0.1000 0.1000 0.1000 0.1000 0.1000 0.1000 0.1000 0.1000 0.1000 0.1000 0.1000 0.1000 0.1000 Columns 757 through 774 0.1000 0.1000 0.1000 0.1000 0.1000 0.1000 0.1000 0.1000 0.1000 0.1000 0.1216 0.1464 0.1749 0.2074 0.2441 0.2856 0.3322 0.3842 Columns 775 through 792 0.4421 0.5062 0.5772 0.6554 0.7412 0.8352 0.9379 1.0498 1.1714 1.3032 1.4459 1.6000 1.7661 1.9448 2.1368 2.3426 2.5629 2.7984 Columns 793 through 810 3.0498 3.3178 3.6030 3.9062 3.9062 3.9062 3.9062 3.9062 3.9062 3.9062 3.9062 3.9062 3.9062 3.9062 3.9062 3.9062 3.9062 3.9062 Columns 811 through 828 3.9062 3.9062 3.9062 3.9062 3.9062 3.9062 3.9062 3.9062 3.9062 3.9062 3.9062 3.9062 3.9062 3.9062 3.9062 3.9062 3.9062 3.9062 Columns 829 through 846 3.9062 3.9062 3.9062 3.9062 3.9062 3.9062 3.9062 3.9062 3.9062 3.9062 3.9062 3.9062 3.9062 3.9062 3.9062 3.9062 3.9062 3.9062 Columns 847 through 864 3.9062 3.9062 3.9062 3.9062 3.9062 3.9062 3.9062 3.9062 3.9062 3.9062 3.9062 3.9062 3.9062 3.9062 ...

Output argument "P_avg" (and maybe others) not assigned during call to "cycling_norm_power". Error in Test2 (line 7) [P_avg,NP] = cycling_norm_power(power);

3   Fail
power = 100*ones(1,30); power = [power 100:249]; power = [power 250:-1:101]; power = [power 100*ones(1,30)]; power = repmat(power,[1,10]); P_avg_corr = 163; NP_corr = 182; [P_avg,NP] = cycling_norm_power(power); assert(isequal(P_avg_corr,P_avg)) assert(isequal(NP_corr,NP))

ans = 1.0e+09 * Columns 1 through 18 0.1000 0.1000 0.1000 0.1000 0.1000 0.1000 0.1000 0.1000 0.1000 0.1000 0.1000 0.1000 0.1000 0.1000 0.1000 0.1000 0.1000 0.1001 Columns 19 through 36 0.1004 0.1008 0.1013 0.1020 0.1028 0.1038 0.1049 0.1061 0.1075 0.1091 0.1108 0.1127 0.1148 0.1170 0.1194 0.1220 0.1248 0.1278 Columns 37 through 54 0.1311 0.1345 0.1382 0.1422 0.1464 0.1509 0.1557 0.1608 0.1661 0.1719 0.1780 0.1842 0.1906 0.1972 0.2039 0.2108 0.2179 0.2252 Columns 55 through 72 0.2326 0.2403 0.2481 0.2561 0.2643 0.2727 0.2812 0.2900 0.2990 0.3082 0.3176 0.3273 0.3371 0.3472 0.3574 0.3680 0.3787 0.3897 Columns 73 through 90 0.4009 0.4123 0.4240 0.4360 0.4482 0.4606 0.4733 0.4863 0.4995 0.5130 0.5268 0.5409 0.5552 0.5698 0.5847 0.5999 0.6154 0.6311 Columns 91 through 108 0.6472 0.6636 0.6803 0.6973 0.7146 0.7323 0.7502 0.7685 0.7872 0.8061 0.8254 0.8451 0.8651 0.8854 0.9061 0.9272 0.9487 0.9705 Columns 109 through 126 0.9926 1.0152 1.0381 1.0615 1.0852 1.1093 1.1338 1.1587 1.1841 1.2098 1.2360 1.2625 1.2895 1.3170 1.3449 1.3732 1.4019 1.4311 Columns 127 through 144 1.4608 1.4909 1.5215 1.5525 1.5841 1.6161 1.6485 1.6815 1.7150 1.7489 1.7834 1.8184 1.8538 1.8898 1.9264 1.9634 2.0010 2.0391 Columns 145 through 162 2.0777 2.1169 2.1567 2.1970 2.2379 2.2793 2.3213 2.3639 2.4071 2.4509 2.4952 2.5402 2.5857 2.6319 2.6787 2.7261 2.7742 2.8228 Columns 163 through 180 2.8721 2.9221 2.9727 3.0239 3.0758 3.1249 3.1710 3.2139 3.2537 3.2902 3.3233 3.3529 3.3790 3.4015 3.4203 3.4354 3.4468 3.4544 Columns 181 through 198 3.4582 3.4582 3.4544 3.4468 3.4354 3.4203 3.4015 3.3790 3.3529 3.3233 3.2902 3.2537 3.2139 3.1710 3.1249 3.0758 3.0239 2.9727 Columns 199 through 216 2.9221 2.8721 2.8228 2.7742 2.7261 2.6787 2.6319 2.5857 2.5402 2.4952 2.4509 2.4071 2.3639 2.3213 2.2793 2.2379 2.1970 2.1567 Columns 217 through 234 2.1169 2.0777 2.0391 2.0010 1.9634 1.9264 1.8898 1.8538 1.8184 1.7834 1.7489 1.7150 1.6815 1.6485 1.6161 1.5841 1.5525 1.5215 Columns 235 through 252 1.4909 1.4608 1.4311 1.4019 1.3732 1.3449 1.3170 1.2895 1.2625 1.2360 1.2098 1.1841 1.1587 1.1338 1.1093 1.0852 1.0615 1.0381 Columns 253 through 270 1.0152 0.9926 0.9705 0.9487 0.9272 0.9061 0.8854 0.8651 0.8451 0.8254 0.8061 0.7872 0.7685 0.7502 0.7323 0.7146 0.6973 0.6803 Columns 271 through 288 0.6636 0.6472 0.6311 0.6154 0.5999 0.5847 0.5698 0.5552 0.5409 0.5268 0.5130 0.4995 0.4863 0.4733 0.4606 0.4482 0.4360 0.4240 Columns 289 through 306 0.4123 0.4009 0.3897 0.3787 0.3680 0.3574 0.3472 0.3371 0.3273 0.3176 0.3082 0.2990 0.2900 0.2812 0.2727 0.2643 0.2561 0.2481 Columns 307 through 324 0.2403 0.2326 0.2252 0.2179 0.2108 0.2039 0.1972 0.1906 0.1842 0.1780 0.1719 0.1661 0.1608 0.1557 0.1509 0.1464 0.1422 0.1382 Columns 325 through 342 0.1345 0.1311 0.1278 0.1248 0.1220 0.1194 0.1170 0.1148 0.1127 0.1108 0.1091 0.1075 0.1061 0.1049 0.1038 0.1028 0.1020 0.1013 Columns 343 through 360 0.1008 0.1004 0.1001 0.1000 0.1000 0.1000 0.1000 0.1000 0.1000 0.1000 0.1000 0.1000 0.1000 0.1000 0.1000 0.1000 0.1000 0.1000 Columns 361 through 378 0.1000 0.1000 0.1000 0.1000 0.1000 0.1000 0.1000 0.1000 0.1000 0.1000 0.1000 0.1000 0.1000 0.1000 0.1000 0.1000 0.1000 0.1001 Columns 379 through 396 0.1004 0.1008 0.1013 0.1020 0.1028 0.1038 0.1049 0.1061 0.1075 0.1091 0.1108 0.1127 0.1148 0.1170 0.1194 0.1220 0.1248 0.1278 Columns 397 through 414 0.1311 0.1345 0.1382 0.1422 0.1464 0.1509 0.1557 0.1608 0.1661 0.1719 0.1780 0.1842 0.1906 0.1972 0.2039 0.2108 0.2179 0.2252 Columns 415 through 432 0.2326 0.2403 0.2481 0.2561 0.2643 0.2727 0.2812 0.2900 0.2990 0.3082 0.3176 0.3273 0.3371 0.3472 0.3574 0.3680 0.3787 0.3897 Columns 433 through 450 0.4009 0.4123 0.4240 0.4360 0.4482 0.4606 0.4733 0.4863 0.4995 0.5130 0.5268 0.5409 0.5552 0.5698 0.5847 0.5999 0.6154 0.6311 Columns 451 through 468 0.6472 0.6636 0.6803 0.6973 0.7146 0.7323 0.7502 0.7685 0.7872 0.8061 0.8254 0.8451 0.8651 0.8854 0.9061 0.9272 0.9487 0.9705 Columns 469 through 486 0.9926 1.0152 1.0381 1.0615 1.0852 1.1093 1.1338 1.1587 1.1841 1.2098 1.2360 1.2625 1.2895 1.3170 1.3449 1.3732 1.4019 1.4311 Columns 487 through 504 1.4608 1.4909 1.5215 1.5525 1.5841 1.6161 1.6485 1.6815 1.7150 1.7489 1.7834 1.8184 1.8538 1.8898 1.9264 1.9634 2.0010 2.0391 Columns 505 through 522 2.0777 2.1169 2.1567 2.1970 2.2379 2.2793 2.3213 2.3639 2.4071 2.4509 2.4952 2.5402 2.5857 2.6319 2.6787 2.7261 2.7742 2.8228 Columns 523 through 540 2.8721 2.9221 2.9727 3.0239 3.0758 3.1249 3.1710 3.2139 3.2537 3.2902 3.3233 3.3529 3.3790 3.4015 3.4203 3.4354 3.4468 3.4544 Columns 541 through 558 3.4582 3.4582 3.4544 3.4468 3.4354 3.4203 3.4015 3.3790 3.3529 3.3233 3.2902 3.2537 3.2139 3.1710 3.1249 3.0758 3.0239 2.9727 Columns 559 through 576 2.9221 2.8721 2.8228 2.7742 2.7261 2.6787 2.6319 2.5857 2.5402 2.4952 2.4509 2.4071 2.3639 2.3213 2.2793 2.2379 2.1970 2.1567 Columns 577 through 594 2.1169 2.0777 2.0391 2.0010 1.9634 1.9264 1.8898 1.8538 1.8184 1.7834 1.7489 1.7150 1.6815 1.6485 1.6161 1.5841 1.5525 1.5215 Columns 595 through 612 1.4909 1.4608 1.4311 1.4019 1.3732 1.3449 1.3170 1.2895 1.2625 1.2360 1.2098 1.1841 1.1587 1.1338 1.1093 1.0852 1.0615 1.0381 Columns 613 through 630 1.0152 0.9926 0.9705 0.9487 0.9272 0.9061 0.8854 0.8651 0.8451 0.8254 0.8061 0.7872 0.7685 0.7502 0.7323 0.7146 0.6973 0.6803 Columns 631 through 648 0.6636 0.6472 0.6311 0.6154 0.5999 0.5847 0.5698 0.5552 0.5409 0.5268 0.5130 0.4995 0.4863 0.4733 0.4606 0.4482 0.4360 0.4240 Columns 649 through 666 0.4123 0.4009 0.3897 0.3787 0.3680 0.3574 0.3472 0.3371 0.3273 0.3176 0.3082 0.2990 0.2900 0.2812 0.2727 0.2643 0.2561 0.2481 Columns 667 through 684 0.2403 0.2326 0.2252 0.2179 0.2108 0.2039 0.1972 0.1906 0.1842 0.1780 0.1719 0.1661 0.1608 0.1557 0.1509 0.1464 0.1422 0.1382 Columns 685 through 702 0.1345 0.1311 0.1278 0.1248 0.1220 0.1194 0.1170 0.1148 0.1127 0.1108 0.1091 0.1075 0.1061 0.1049 0.1038 0.1028 0.1020 0.1013 Columns 703 through 720 0.1008 0.1004 0.1001 0.1000 0.1000 0.1000 0.1000 0.1000 0.1000 0.1000 0.1000 0.1000 0.1000 0.1000 0.1000 0.1000 0.1000 0.1000 Columns 721 through 738 0.1000 0.1000 0.1000 0.1000 0.1000 0.1000 0.1000 0.1000 0.1000 0.1000 0.1000 0.1000 0.1000 0.1000 0.1000 0.1000 0.1000 0.1001 Columns 739 through 756 0.1004 0.1008 0.1013 0.1020 0.1028 0.1038 0.1049 0.1061 0.1075 0.1091 0.1108 0.1127 0.1148 0.1170 0.1194 0.1220 0.1248 0.1278 Columns 757 through 774 0.1311 0.1345 0.1382 0.1422 0.1464 0.1509 0.1557 0.1608 0.1661 0.1719 0.1780 0.1842 0.1906 0.1972 0.2039 0.2108 0.2179 0.2252 Columns 775 through 792 0.2326 0.2403 0.2481 0.2561 0.2643 0.2727 0.2812 0.2900 0.2990 0.3082 0.3176 0.3273 0.3371 0.3472 0.3574 0.3680 0.3787 0.3897 Columns 793 through 810 0.4009 0.4123 0.4240 0.4360 0.4482 0.4606 0.4733 0.4863 0.4995 0.5130 0.5268 0.5409 0.5552 0.5698 0.5847 0.5999 0.6154 0.6311 Columns 811 through 828 0.6472 0.6636 0.6803 0.6973 0.7146 0.7323 0.7502 0.7685 0.7872 0.8061 0.8254 0.8451 0.8651 0.8854 0.9061 0.9272 0.9487 0.9705 Columns 829 through 846 0.9926 1.0152 1.0381 1.0615 1.0852 1.1093 1.1338 1.1587 1.1841 1.2098 1.2360 1.2625 1.2895 1.3170 1.3449 1.3732 1.4019 1.4311 Columns 847 through 864 1.4608 1.4909 1.5215 1.5525 1.5841 1.6161 1.6485 1.6815 1.7150 1.7489 1.7834 1.8184 1.8538 1.8898 ...

Output argument "P_avg" (and maybe others) not assigned during call to "cycling_norm_power". Error in Test3 (line 8) [P_avg,NP] = cycling_norm_power(power);

4   Fail
power = 100*ones(1,170); power = [power 500*ones(1,20)]; power = [power 100*ones(1,170)]; power = repmat(power,[1,10]); P_avg_corr = 122; NP_corr = 244; [P_avg,NP] = cycling_norm_power(power); assert(isequal(P_avg_corr,P_avg)) assert(isequal(NP_corr,NP))

ans = 1.0e+10 * Columns 1 through 18 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 Columns 19 through 36 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 Columns 37 through 54 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 Columns 55 through 72 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 Columns 73 through 90 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 Columns 91 through 108 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 Columns 109 through 126 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 Columns 127 through 144 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 Columns 145 through 162 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0165 0.0257 0.0384 0.0553 0.0772 0.1050 Columns 163 through 180 0.1397 0.1824 0.2343 0.2964 0.3702 0.4570 0.5582 0.6753 0.8100 0.9639 1.1387 1.3363 1.5586 1.8075 1.8075 1.8075 1.8075 1.8075 Columns 181 through 198 1.8075 1.8075 1.8075 1.8075 1.8075 1.8075 1.5586 1.3363 1.1387 0.9639 0.8100 0.6753 0.5582 0.4570 0.3702 0.2964 0.2343 0.1824 Columns 199 through 216 0.1397 0.1050 0.0772 0.0553 0.0384 0.0257 0.0165 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 Columns 217 through 234 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 Columns 235 through 252 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 Columns 253 through 270 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 Columns 271 through 288 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 Columns 289 through 306 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 Columns 307 through 324 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 Columns 325 through 342 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 Columns 343 through 360 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 Columns 361 through 378 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 Columns 379 through 396 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 Columns 397 through 414 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 Columns 415 through 432 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 Columns 433 through 450 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 Columns 451 through 468 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 Columns 469 through 486 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 Columns 487 through 504 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 Columns 505 through 522 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0165 0.0257 0.0384 0.0553 0.0772 0.1050 Columns 523 through 540 0.1397 0.1824 0.2343 0.2964 0.3702 0.4570 0.5582 0.6753 0.8100 0.9639 1.1387 1.3363 1.5586 1.8075 1.8075 1.8075 1.8075 1.8075 Columns 541 through 558 1.8075 1.8075 1.8075 1.8075 1.8075 1.8075 1.5586 1.3363 1.1387 0.9639 0.8100 0.6753 0.5582 0.4570 0.3702 0.2964 0.2343 0.1824 Columns 559 through 576 0.1397 0.1050 0.0772 0.0553 0.0384 0.0257 0.0165 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 Columns 577 through 594 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 Columns 595 through 612 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 Columns 613 through 630 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 Columns 631 through 648 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 Columns 649 through 666 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 Columns 667 through 684 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 Columns 685 through 702 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 Columns 703 through 720 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 Columns 721 through 738 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 Columns 739 through 756 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 Columns 757 through 774 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 Columns 775 through 792 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 Columns 793 through 810 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 Columns 811 through 828 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 Columns 829 through 846 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 Columns 847 through 864 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 ...

Output argument "P_avg" (and maybe others) not assigned during call to "cycling_norm_power". Error in Test4 (line 7) [P_avg,NP] = cycling_norm_power(power);

5   Fail
power = 100*ones(1,176); power = [power 1500*ones(1,8)]; power = [power 100*ones(1,176)]; power = repmat(power,[1,10]); P_avg_corr = 131; NP_corr = 579; [P_avg,NP] = cycling_norm_power(power); assert(isequal(P_avg_corr,P_avg)) assert(isequal(NP_corr,NP))

ans = 1.0e+10 * Columns 1 through 18 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 Columns 19 through 36 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 Columns 37 through 54 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 Columns 55 through 72 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 Columns 73 through 90 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 Columns 91 through 108 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 Columns 109 through 126 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 Columns 127 through 144 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 Columns 145 through 162 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 Columns 163 through 180 0.0463 0.1397 0.3318 0.6753 1.2346 2.0851 3.3140 5.0196 5.0196 5.0196 5.0196 5.0196 5.0196 5.0196 5.0196 5.0196 5.0196 5.0196 Columns 181 through 198 5.0196 5.0196 5.0196 5.0196 5.0196 5.0196 5.0196 5.0196 5.0196 5.0196 5.0196 5.0196 3.3140 2.0851 1.2346 0.6753 0.3318 0.1397 Columns 199 through 216 0.0463 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 Columns 217 through 234 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 Columns 235 through 252 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 Columns 253 through 270 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 Columns 271 through 288 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 Columns 289 through 306 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 Columns 307 through 324 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 Columns 325 through 342 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 Columns 343 through 360 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 Columns 361 through 378 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 Columns 379 through 396 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 Columns 397 through 414 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 Columns 415 through 432 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 Columns 433 through 450 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 Columns 451 through 468 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 Columns 469 through 486 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 Columns 487 through 504 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 Columns 505 through 522 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 Columns 523 through 540 0.0463 0.1397 0.3318 0.6753 1.2346 2.0851 3.3140 5.0196 5.0196 5.0196 5.0196 5.0196 5.0196 5.0196 5.0196 5.0196 5.0196 5.0196 Columns 541 through 558 5.0196 5.0196 5.0196 5.0196 5.0196 5.0196 5.0196 5.0196 5.0196 5.0196 5.0196 5.0196 3.3140 2.0851 1.2346 0.6753 0.3318 0.1397 Columns 559 through 576 0.0463 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 Columns 577 through 594 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 Columns 595 through 612 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 Columns 613 through 630 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 Columns 631 through 648 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 Columns 649 through 666 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 Columns 667 through 684 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 Columns 685 through 702 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 Columns 703 through 720 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 Columns 721 through 738 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 Columns 739 through 756 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 Columns 757 through 774 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 Columns 775 through 792 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 Columns 793 through 810 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 Columns 811 through 828 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 Columns 829 through 846 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 Columns 847 through 864 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 0.0100 ...

Output argument "P_avg" (and maybe others) not assigned during call to "cycling_norm_power". Error in Test5 (line 7) [P_avg,NP] = cycling_norm_power(power);

6   Fail
ind = randi(5); switch ind case 1 power = 200*ones(1,3600); P_avg_corr = 200; NP_corr = 200; case 2 power = 100*ones(1,60); power = [power 250*ones(1,240)]; power = [power 100*ones(1,60)]; power = repmat(power,[1,10]); P_avg_corr = 200; NP_corr = 227; case 3 power = 100*ones(1,30); power = [power 100:249]; power = [power 250:-1:101]; power = [power 100*ones(1,30)]; power = repmat(power,[1,10]); P_avg_corr = 163; NP_corr = 182; case 4 power = 100*ones(1,170); power = [power 500*ones(1,20)]; power = [power 100*ones(1,170)]; power = repmat(power,[1,10]); P_avg_corr = 122; NP_corr = 244; case 5 power = 100*ones(1,176); power = [power 1500*ones(1,8)]; power = [power 100*ones(1,176)]; power = repmat(power,[1,10]); P_avg_corr = 131; NP_corr = 579; end [P_avg,NP] = cycling_norm_power(power); assert(isequal(P_avg_corr,P_avg)) assert(isequal(NP_corr,NP))

ans = 1.0e+09 * Columns 1 through 18 0.1000 0.1000 0.1000 0.1000 0.1000 0.1000 0.1000 0.1000 0.1000 0.1000 0.1000 0.1000 0.1000 0.1000 0.1000 0.1000 0.1000 0.1001 Columns 19 through 36 0.1004 0.1008 0.1013 0.1020 0.1028 0.1038 0.1049 0.1061 0.1075 0.1091 0.1108 0.1127 0.1148 0.1170 0.1194 0.1220 0.1248 0.1278 Columns 37 through 54 0.1311 0.1345 0.1382 0.1422 0.1464 0.1509 0.1557 0.1608 0.1661 0.1719 0.1780 0.1842 0.1906 0.1972 0.2039 0.2108 0.2179 0.2252 Columns 55 through 72 0.2326 0.2403 0.2481 0.2561 0.2643 0.2727 0.2812 0.2900 0.2990 0.3082 0.3176 0.3273 0.3371 0.3472 0.3574 0.3680 0.3787 0.3897 Columns 73 through 90 0.4009 0.4123 0.4240 0.4360 0.4482 0.4606 0.4733 0.4863 0.4995 0.5130 0.5268 0.5409 0.5552 0.5698 0.5847 0.5999 0.6154 0.6311 Columns 91 through 108 0.6472 0.6636 0.6803 0.6973 0.7146 0.7323 0.7502 0.7685 0.7872 0.8061 0.8254 0.8451 0.8651 0.8854 0.9061 0.9272 0.9487 0.9705 Columns 109 through 126 0.9926 1.0152 1.0381 1.0615 1.0852 1.1093 1.1338 1.1587 1.1841 1.2098 1.2360 1.2625 1.2895 1.3170 1.3449 1.3732 1.4019 1.4311 Columns 127 through 144 1.4608 1.4909 1.5215 1.5525 1.5841 1.6161 1.6485 1.6815 1.7150 1.7489 1.7834 1.8184 1.8538 1.8898 1.9264 1.9634 2.0010 2.0391 Columns 145 through 162 2.0777 2.1169 2.1567 2.1970 2.2379 2.2793 2.3213 2.3639 2.4071 2.4509 2.4952 2.5402 2.5857 2.6319 2.6787 2.7261 2.7742 2.8228 Columns 163 through 180 2.8721 2.9221 2.9727 3.0239 3.0758 3.1249 3.1710 3.2139 3.2537 3.2902 3.3233 3.3529 3.3790 3.4015 3.4203 3.4354 3.4468 3.4544 Columns 181 through 198 3.4582 3.4582 3.4544 3.4468 3.4354 3.4203 3.4015 3.3790 3.3529 3.3233 3.2902 3.2537 3.2139 3.1710 3.1249 3.0758 3.0239 2.9727 Columns 199 through 216 2.9221 2.8721 2.8228 2.7742 2.7261 2.6787 2.6319 2.5857 2.5402 2.4952 2.4509 2.4071 2.3639 2.3213 2.2793 2.2379 2.1970 2.1567 Columns 217 through 234 2.1169 2.0777 2.0391 2.0010 1.9634 1.9264 1.8898 1.8538 1.8184 1.7834 1.7489 1.7150 1.6815 1.6485 1.6161 1.5841 1.5525 1.5215 Columns 235 through 252 1.4909 1.4608 1.4311 1.4019 1.3732 1.3449 1.3170 1.2895 1.2625 1.2360 1.2098 1.1841 1.1587 1.1338 1.1093 1.0852 1.0615 1.0381 Columns 253 through 270 1.0152 0.9926 0.9705 0.9487 0.9272 0.9061 0.8854 0.8651 0.8451 0.8254 0.8061 0.7872 0.7685 0.7502 0.7323 0.7146 0.6973 0.6803 Columns 271 through 288 0.6636 0.6472 0.6311 0.6154 0.5999 0.5847 0.5698 0.5552 0.5409 0.5268 0.5130 0.4995 0.4863 0.4733 0.4606 0.4482 0.4360 0.4240 Columns 289 through 306 0.4123 0.4009 0.3897 0.3787 0.3680 0.3574 0.3472 0.3371 0.3273 0.3176 0.3082 0.2990 0.2900 0.2812 0.2727 0.2643 0.2561 0.2481 Columns 307 through 324 0.2403 0.2326 0.2252 0.2179 0.2108 0.2039 0.1972 0.1906 0.1842 0.1780 0.1719 0.1661 0.1608 0.1557 0.1509 0.1464 0.1422 0.1382 Columns 325 through 342 0.1345 0.1311 0.1278 0.1248 0.1220 0.1194 0.1170 0.1148 0.1127 0.1108 0.1091 0.1075 0.1061 0.1049 0.1038 0.1028 0.1020 0.1013 Columns 343 through 360 0.1008 0.1004 0.1001 0.1000 0.1000 0.1000 0.1000 0.1000 0.1000 0.1000 0.1000 0.1000 0.1000 0.1000 0.1000 0.1000 0.1000 0.1000 Columns 361 through 378 0.1000 0.1000 0.1000 0.1000 0.1000 0.1000 0.1000 0.1000 0.1000 0.1000 0.1000 0.1000 0.1000 0.1000 0.1000 0.1000 0.1000 0.1001 Columns 379 through 396 0.1004 0.1008 0.1013 0.1020 0.1028 0.1038 0.1049 0.1061 0.1075 0.1091 0.1108 0.1127 0.1148 0.1170 0.1194 0.1220 0.1248 0.1278 Columns 397 through 414 0.1311 0.1345 0.1382 0.1422 0.1464 0.1509 0.1557 0.1608 0.1661 0.1719 0.1780 0.1842 0.1906 0.1972 0.2039 0.2108 0.2179 0.2252 Columns 415 through 432 0.2326 0.2403 0.2481 0.2561 0.2643 0.2727 0.2812 0.2900 0.2990 0.3082 0.3176 0.3273 0.3371 0.3472 0.3574 0.3680 0.3787 0.3897 Columns 433 through 450 0.4009 0.4123 0.4240 0.4360 0.4482 0.4606 0.4733 0.4863 0.4995 0.5130 0.5268 0.5409 0.5552 0.5698 0.5847 0.5999 0.6154 0.6311 Columns 451 through 468 0.6472 0.6636 0.6803 0.6973 0.7146 0.7323 0.7502 0.7685 0.7872 0.8061 0.8254 0.8451 0.8651 0.8854 0.9061 0.9272 0.9487 0.9705 Columns 469 through 486 0.9926 1.0152 1.0381 1.0615 1.0852 1.1093 1.1338 1.1587 1.1841 1.2098 1.2360 1.2625 1.2895 1.3170 1.3449 1.3732 1.4019 1.4311 Columns 487 through 504 1.4608 1.4909 1.5215 1.5525 1.5841 1.6161 1.6485 1.6815 1.7150 1.7489 1.7834 1.8184 1.8538 1.8898 1.9264 1.9634 2.0010 2.0391 Columns 505 through 522 2.0777 2.1169 2.1567 2.1970 2.2379 2.2793 2.3213 2.3639 2.4071 2.4509 2.4952 2.5402 2.5857 2.6319 2.6787 2.7261 2.7742 2.8228 Columns 523 through 540 2.8721 2.9221 2.9727 3.0239 3.0758 3.1249 3.1710 3.2139 3.2537 3.2902 3.3233 3.3529 3.3790 3.4015 3.4203 3.4354 3.4468 3.4544 Columns 541 through 558 3.4582 3.4582 3.4544 3.4468 3.4354 3.4203 3.4015 3.3790 3.3529 3.3233 3.2902 3.2537 3.2139 3.1710 3.1249 3.0758 3.0239 2.9727 Columns 559 through 576 2.9221 2.8721 2.8228 2.7742 2.7261 2.6787 2.6319 2.5857 2.5402 2.4952 2.4509 2.4071 2.3639 2.3213 2.2793 2.2379 2.1970 2.1567 Columns 577 through 594 2.1169 2.0777 2.0391 2.0010 1.9634 1.9264 1.8898 1.8538 1.8184 1.7834 1.7489 1.7150 1.6815 1.6485 1.6161 1.5841 1.5525 1.5215 Columns 595 through 612 1.4909 1.4608 1.4311 1.4019 1.3732 1.3449 1.3170 1.2895 1.2625 1.2360 1.2098 1.1841 1.1587 1.1338 1.1093 1.0852 1.0615 1.0381 Columns 613 through 630 1.0152 0.9926 0.9705 0.9487 0.9272 0.9061 0.8854 0.8651 0.8451 0.8254 0.8061 0.7872 0.7685 0.7502 0.7323 0.7146 0.6973 0.6803 Columns 631 through 648 0.6636 0.6472 0.6311 0.6154 0.5999 0.5847 0.5698 0.5552 0.5409 0.5268 0.5130 0.4995 0.4863 0.4733 0.4606 0.4482 0.4360 0.4240 Columns 649 through 666 0.4123 0.4009 0.3897 0.3787 0.3680 0.3574 0.3472 0.3371 0.3273 0.3176 0.3082 0.2990 0.2900 0.2812 0.2727 0.2643 0.2561 0.2481 Columns 667 through 684 0.2403 0.2326 0.2252 0.2179 0.2108 0.2039 0.1972 0.1906 0.1842 0.1780 0.1719 0.1661 0.1608 0.1557 0.1509 0.1464 0.1422 0.1382 Columns 685 through 702 0.1345 0.1311 0.1278 0.1248 0.1220 0.1194 0.1170 0.1148 0.1127 0.1108 0.1091 0.1075 0.1061 0.1049 0.1038 0.1028 0.1020 0.1013 Columns 703 through 720 0.1008 0.1004 0.1001 0.1000 0.1000 0.1000 0.1000 0.1000 0.1000 0.1000 0.1000 0.1000 0.1000 0.1000 0.1000 0.1000 0.1000 0.1000 Columns 721 through 738 0.1000 0.1000 0.1000 0.1000 0.1000 0.1000 0.1000 0.1000 0.1000 0.1000 0.1000 0.1000 0.1000 0.1000 0.1000 0.1000 0.1000 0.1001 Columns 739 through 756 0.1004 0.1008 0.1013 0.1020 0.1028 0.1038 0.1049 0.1061 0.1075 0.1091 0.1108 0.1127 0.1148 0.1170 0.1194 0.1220 0.1248 0.1278 Columns 757 through 774 0.1311 0.1345 0.1382 0.1422 0.1464 0.1509 0.1557 0.1608 0.1661 0.1719 0.1780 0.1842 0.1906 0.1972 0.2039 0.2108 0.2179 0.2252 Columns 775 through 792 0.2326 0.2403 0.2481 0.2561 0.2643 0.2727 0.2812 0.2900 0.2990 0.3082 0.3176 0.3273 0.3371 0.3472 0.3574 0.3680 0.3787 0.3897 Columns 793 through 810 0.4009 0.4123 0.4240 0.4360 0.4482 0.4606 0.4733 0.4863 0.4995 0.5130 0.5268 0.5409 0.5552 0.5698 0.5847 0.5999 0.6154 0.6311 Columns 811 through 828 0.6472 0.6636 0.6803 0.6973 0.7146 0.7323 0.7502 0.7685 0.7872 0.8061 0.8254 0.8451 0.8651 0.8854 0.9061 0.9272 0.9487 0.9705 Columns 829 through 846 0.9926 1.0152 1.0381 1.0615 1.0852 1.1093 1.1338 1.1587 1.1841 1.2098 1.2360 1.2625 1.2895 1.3170 1.3449 1.3732 1.4019 1.4311 Columns 847 through 864 1.4608 1.4909 1.5215 1.5525 1.5841 1.6161 1.6485 1.6815 1.7150 1.7489 1.7834 1.8184 1.8538 1.8898 ...

Output argument "P_avg" (and maybe others) not assigned during call to "cycling_norm_power". Error in Test6 (line 37) [P_avg,NP] = cycling_norm_power(power);

Suggested Problems

More from this Author139