Cody

Problem 3064. Cycling — Normalized Power

Solution 2687060

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))

power = Columns 1 through 30 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 Columns 31 through 60 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 Columns 61 through 90 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 Columns 91 through 120 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 Columns 121 through 150 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 Columns 151 through 180 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 Columns 181 through 210 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 Columns 211 through 240 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 Columns 241 through 270 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 Columns 271 through 300 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 Columns 301 through 330 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 Columns 331 through 360 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 Columns 361 through 390 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 Columns 391 through 420 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 Columns 421 through 450 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 Columns 451 through 480 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 Columns 481 through 510 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 Columns 511 through 540 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 Columns 541 through 570 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 Columns 571 through 600 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 Columns 601 through 630 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 Columns 631 through 660 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 Columns 661 through 690 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 Columns 691 through 720 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 Columns 721 through 750 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 Columns 751 through 780 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 Columns 781 through 810 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 Columns 811 through 840 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 Columns 841 through 870 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 Columns 871 through 900 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 Columns 901 through 930 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 Columns 931 through 960 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 Columns 961 through 990 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 Columns 991 through 1,020 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 Columns 1,021 through 1,050 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 Columns 1,051 through 1,080 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 Columns 1,081 through 1,110 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 Columns 1,111 through 1,140 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 Columns 1,141 through 1,170 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 Columns 1,171 through 1,200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 Columns 1,201 through 1,230 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 Columns 1,231 through 1,260 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 Columns 1,261 through 1,290 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 Columns 1,291 through 1,320 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 Columns 1,321 through 1,350 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 Columns 1,351 through 1,380 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 Columns 1,381 through 1,410 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 Columns 1,411 through 1,440 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 ...

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))

power = Columns 1 through 30 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 Columns 31 through 60 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 Columns 61 through 90 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 Columns 91 through 120 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 Columns 121 through 150 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 Columns 151 through 180 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 Columns 181 through 210 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 Columns 211 through 240 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 Columns 241 through 270 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 Columns 271 through 300 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 Columns 301 through 330 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 Columns 331 through 360 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 Columns 361 through 390 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 Columns 391 through 420 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 Columns 421 through 450 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 Columns 451 through 480 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 Columns 481 through 510 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 Columns 511 through 540 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 Columns 541 through 570 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 Columns 571 through 600 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 Columns 601 through 630 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 Columns 631 through 660 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 Columns 661 through 690 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 Columns 691 through 720 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 Columns 721 through 750 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 Columns 751 through 780 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 Columns 781 through 810 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 Columns 811 through 840 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 Columns 841 through 870 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 Columns 871 through 900 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 Columns 901 through 930 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 Columns 931 through 960 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 Columns 961 through 990 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 Columns 991 through 1,020 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 Columns 1,021 through 1,050 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 Columns 1,051 through 1,080 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 Columns 1,081 through 1,110 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 Columns 1,111 through 1,140 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 Columns 1,141 through 1,170 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 Columns 1,171 through 1,200 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 Columns 1,201 through 1,230 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 Columns 1,231 through 1,260 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 Columns 1,261 through 1,290 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 Columns 1,291 through 1,320 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 Columns 1,321 through 1,350 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 Columns 1,351 through 1,380 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 Columns 1,381 through 1,410 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 Columns 1,411 through 1,440 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 ...

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))

power = Columns 1 through 30 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 Columns 31 through 60 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 Columns 61 through 90 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 Columns 91 through 120 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 Columns 121 through 150 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 Columns 151 through 180 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 Columns 181 through 210 250 249 248 247 246 245 244 243 242 241 240 239 238 237 236 235 234 233 232 231 230 229 228 227 226 225 224 223 222 221 Columns 211 through 240 220 219 218 217 216 215 214 213 212 211 210 209 208 207 206 205 204 203 202 201 200 199 198 197 196 195 194 193 192 191 Columns 241 through 270 190 189 188 187 186 185 184 183 182 181 180 179 178 177 176 175 174 173 172 171 170 169 168 167 166 165 164 163 162 161 Columns 271 through 300 160 159 158 157 156 155 154 153 152 151 150 149 148 147 146 145 144 143 142 141 140 139 138 137 136 135 134 133 132 131 Columns 301 through 330 130 129 128 127 126 125 124 123 122 121 120 119 118 117 116 115 114 113 112 111 110 109 108 107 106 105 104 103 102 101 Columns 331 through 360 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 Columns 361 through 390 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 Columns 391 through 420 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 Columns 421 through 450 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 Columns 451 through 480 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 Columns 481 through 510 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 Columns 511 through 540 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 Columns 541 through 570 250 249 248 247 246 245 244 243 242 241 240 239 238 237 236 235 234 233 232 231 230 229 228 227 226 225 224 223 222 221 Columns 571 through 600 220 219 218 217 216 215 214 213 212 211 210 209 208 207 206 205 204 203 202 201 200 199 198 197 196 195 194 193 192 191 Columns 601 through 630 190 189 188 187 186 185 184 183 182 181 180 179 178 177 176 175 174 173 172 171 170 169 168 167 166 165 164 163 162 161 Columns 631 through 660 160 159 158 157 156 155 154 153 152 151 150 149 148 147 146 145 144 143 142 141 140 139 138 137 136 135 134 133 132 131 Columns 661 through 690 130 129 128 127 126 125 124 123 122 121 120 119 118 117 116 115 114 113 112 111 110 109 108 107 106 105 104 103 102 101 Columns 691 through 720 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 Columns 721 through 750 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 Columns 751 through 780 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 Columns 781 through 810 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 Columns 811 through 840 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 Columns 841 through 870 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 Columns 871 through 900 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 Columns 901 through 930 250 249 248 247 246 245 244 243 242 241 240 239 238 237 236 235 234 233 232 231 230 229 228 227 226 225 224 223 222 221 Columns 931 through 960 220 219 218 217 216 215 214 213 212 211 210 209 208 207 206 205 204 203 202 201 200 199 198 197 196 195 194 193 192 191 Columns 961 through 990 190 189 188 187 186 185 184 183 182 181 180 179 178 177 176 175 174 173 172 171 170 169 168 167 166 165 164 163 162 161 Columns 991 through 1,020 160 159 158 157 156 155 154 153 152 151 150 149 148 147 146 145 144 143 142 141 140 139 138 137 136 135 134 133 132 131 Columns 1,021 through 1,050 130 129 128 127 126 125 124 123 122 121 120 119 118 117 116 115 114 113 112 111 110 109 108 107 106 105 104 103 102 101 Columns 1,051 through 1,080 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 Columns 1,081 through 1,110 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 Columns 1,111 through 1,140 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 Columns 1,141 through 1,170 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 Columns 1,171 through 1,200 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 Columns 1,201 through 1,230 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 Columns 1,231 through 1,260 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 Columns 1,261 through 1,290 250 249 248 247 246 245 244 243 242 241 240 239 238 237 236 235 234 233 232 231 230 229 228 227 226 225 224 223 222 221 Columns 1,291 through 1,320 220 219 218 217 216 215 214 213 212 211 210 209 208 207 206 205 204 203 202 201 200 199 198 197 196 195 194 193 192 191 Columns 1,321 through 1,350 190 189 188 187 186 185 184 183 182 181 180 179 178 177 176 175 174 173 172 171 170 169 168 167 166 165 164 163 162 161 Columns 1,351 through 1,380 160 159 158 157 156 155 154 153 152 151 150 149 148 147 146 145 144 143 142 141 140 139 138 137 136 135 134 133 132 131 Columns 1,381 through 1,410 130 129 128 127 126 125 124 123 122 121 120 119 118 117 116 115 114 113 112 111 110 109 108 107 106 105 104 103 102 101 Columns 1,411 through 1,440 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 ...

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))

power = Columns 1 through 30 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 Columns 31 through 60 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 Columns 61 through 90 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 Columns 91 through 120 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 Columns 121 through 150 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 Columns 151 through 180 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 500 500 500 500 500 500 500 500 500 500 Columns 181 through 210 500 500 500 500 500 500 500 500 500 500 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 Columns 211 through 240 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 Columns 241 through 270 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 Columns 271 through 300 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 Columns 301 through 330 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 Columns 331 through 360 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 Columns 361 through 390 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 Columns 391 through 420 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 Columns 421 through 450 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 Columns 451 through 480 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 Columns 481 through 510 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 Columns 511 through 540 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 500 500 500 500 500 500 500 500 500 500 Columns 541 through 570 500 500 500 500 500 500 500 500 500 500 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 Columns 571 through 600 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 Columns 601 through 630 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 Columns 631 through 660 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 Columns 661 through 690 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 Columns 691 through 720 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 Columns 721 through 750 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 Columns 751 through 780 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 Columns 781 through 810 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 Columns 811 through 840 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 Columns 841 through 870 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 Columns 871 through 900 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 500 500 500 500 500 500 500 500 500 500 Columns 901 through 930 500 500 500 500 500 500 500 500 500 500 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 Columns 931 through 960 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 Columns 961 through 990 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 Columns 991 through 1,020 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 Columns 1,021 through 1,050 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 Columns 1,051 through 1,080 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 Columns 1,081 through 1,110 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 Columns 1,111 through 1,140 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 Columns 1,141 through 1,170 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 Columns 1,171 through 1,200 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 Columns 1,201 through 1,230 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 Columns 1,231 through 1,260 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 500 500 500 500 500 500 500 500 500 500 Columns 1,261 through 1,290 500 500 500 500 500 500 500 500 500 500 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 Columns 1,291 through 1,320 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 Columns 1,321 through 1,350 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 Columns 1,351 through 1,380 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 Columns 1,381 through 1,410 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 Columns 1,411 through 1,440 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 ...

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))

power = Columns 1 through 15 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 Columns 16 through 30 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 Columns 31 through 45 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 Columns 46 through 60 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 Columns 61 through 75 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 Columns 76 through 90 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 Columns 91 through 105 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 Columns 106 through 120 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 Columns 121 through 135 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 Columns 136 through 150 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 Columns 151 through 165 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 Columns 166 through 180 100 100 100 100 100 100 100 100 100 100 100 1500 1500 1500 1500 Columns 181 through 195 1500 1500 1500 1500 100 100 100 100 100 100 100 100 100 100 100 Columns 196 through 210 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 Columns 211 through 225 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 Columns 226 through 240 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 Columns 241 through 255 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 Columns 256 through 270 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 Columns 271 through 285 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 Columns 286 through 300 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 Columns 301 through 315 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 Columns 316 through 330 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 Columns 331 through 345 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 Columns 346 through 360 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 Columns 361 through 375 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 Columns 376 through 390 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 Columns 391 through 405 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 Columns 406 through 420 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 Columns 421 through 435 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 Columns 436 through 450 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 Columns 451 through 465 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 Columns 466 through 480 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 Columns 481 through 495 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 Columns 496 through 510 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 Columns 511 through 525 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 Columns 526 through 540 100 100 100 100 100 100 100 100 100 100 100 1500 1500 1500 1500 Columns 541 through 555 1500 1500 1500 1500 100 100 100 100 100 100 100 100 100 100 100 Columns 556 through 570 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 Columns 571 through 585 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 Columns 586 through 600 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 Columns 601 through 615 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 Columns 616 through 630 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 Columns 631 through 645 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 Columns 646 through 660 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 Columns 661 through 675 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 Columns 676 through 690 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 Columns 691 through 705 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 Columns 706 through 720 100 100 100 100 100 100 100 100 100 100 100 100 10...

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))

power = Columns 1 through 30 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 Columns 31 through 60 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 Columns 61 through 90 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 Columns 91 through 120 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 Columns 121 through 150 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 Columns 151 through 180 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 Columns 181 through 210 250 249 248 247 246 245 244 243 242 241 240 239 238 237 236 235 234 233 232 231 230 229 228 227 226 225 224 223 222 221 Columns 211 through 240 220 219 218 217 216 215 214 213 212 211 210 209 208 207 206 205 204 203 202 201 200 199 198 197 196 195 194 193 192 191 Columns 241 through 270 190 189 188 187 186 185 184 183 182 181 180 179 178 177 176 175 174 173 172 171 170 169 168 167 166 165 164 163 162 161 Columns 271 through 300 160 159 158 157 156 155 154 153 152 151 150 149 148 147 146 145 144 143 142 141 140 139 138 137 136 135 134 133 132 131 Columns 301 through 330 130 129 128 127 126 125 124 123 122 121 120 119 118 117 116 115 114 113 112 111 110 109 108 107 106 105 104 103 102 101 Columns 331 through 360 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 Columns 361 through 390 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 Columns 391 through 420 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 Columns 421 through 450 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 Columns 451 through 480 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 Columns 481 through 510 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 Columns 511 through 540 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 Columns 541 through 570 250 249 248 247 246 245 244 243 242 241 240 239 238 237 236 235 234 233 232 231 230 229 228 227 226 225 224 223 222 221 Columns 571 through 600 220 219 218 217 216 215 214 213 212 211 210 209 208 207 206 205 204 203 202 201 200 199 198 197 196 195 194 193 192 191 Columns 601 through 630 190 189 188 187 186 185 184 183 182 181 180 179 178 177 176 175 174 173 172 171 170 169 168 167 166 165 164 163 162 161 Columns 631 through 660 160 159 158 157 156 155 154 153 152 151 150 149 148 147 146 145 144 143 142 141 140 139 138 137 136 135 134 133 132 131 Columns 661 through 690 130 129 128 127 126 125 124 123 122 121 120 119 118 117 116 115 114 113 112 111 110 109 108 107 106 105 104 103 102 101 Columns 691 through 720 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 Columns 721 through 750 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 Columns 751 through 780 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 Columns 781 through 810 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 Columns 811 through 840 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 Columns 841 through 870 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 Columns 871 through 900 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 Columns 901 through 930 250 249 248 247 246 245 244 243 242 241 240 239 238 237 236 235 234 233 232 231 230 229 228 227 226 225 224 223 222 221 Columns 931 through 960 220 219 218 217 216 215 214 213 212 211 210 209 208 207 206 205 204 203 202 201 200 199 198 197 196 195 194 193 192 191 Columns 961 through 990 190 189 188 187 186 185 184 183 182 181 180 179 178 177 176 175 174 173 172 171 170 169 168 167 166 165 164 163 162 161 Columns 991 through 1,020 160 159 158 157 156 155 154 153 152 151 150 149 148 147 146 145 144 143 142 141 140 139 138 137 136 135 134 133 132 131 Columns 1,021 through 1,050 130 129 128 127 126 125 124 123 122 121 120 119 118 117 116 115 114 113 112 111 110 109 108 107 106 105 104 103 102 101 Columns 1,051 through 1,080 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 Columns 1,081 through 1,110 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 Columns 1,111 through 1,140 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 Columns 1,141 through 1,170 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 Columns 1,171 through 1,200 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 Columns 1,201 through 1,230 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 Columns 1,231 through 1,260 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 Columns 1,261 through 1,290 250 249 248 247 246 245 244 243 242 241 240 239 238 237 236 235 234 233 232 231 230 229 228 227 226 225 224 223 222 221 Columns 1,291 through 1,320 220 219 218 217 216 215 214 213 212 211 210 209 208 207 206 205 204 203 202 201 200 199 198 197 196 195 194 193 192 191 Columns 1,321 through 1,350 190 189 188 187 186 185 184 183 182 181 180 179 178 177 176 175 174 173 172 171 170 169 168 167 166 165 164 163 162 161 Columns 1,351 through 1,380 160 159 158 157 156 155 154 153 152 151 150 149 148 147 146 145 144 143 142 141 140 139 138 137 136 135 134 133 132 131 Columns 1,381 through 1,410 130 129 128 127 126 125 124 123 122 121 120 119 118 117 116 115 114 113 112 111 110 109 108 107 106 105 104 103 102 101 Columns 1,411 through 1,440 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 ...

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);