Cody

# Problem 283. Give the Shortest Path Through The Maze

Solution 1324234

Submitted on 2 Nov 2017 by Eric G.
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   Pass
assert(isequal(solve_maze([3 2;1 2]),[1 0;2 3]))

G = graph with properties: Edges: [3×1 table] Nodes: [4×0 table] minD = 2 previousInds = 1 mapInds = 2 3 newInds = 2 previousInds = 2 mapInds = 1 4 newInds = 4 previousInds = 4

`  `
2   Pass
assert(isequal(solve_maze([3 2 2;3 3 1;1 1 1]),[1 2 3;0 0 4;0 0 5]))

G = graph with properties: Edges: [6×1 table] Nodes: [9×0 table] minD = 4 previousInds = 1 mapInds = 4 newInds = 4 previousInds = 4 mapInds = 1 7 newInds = 7 previousInds = 7 mapInds = 4 8 newInds = 8 previousInds = 8 mapInds = 7 9 newInds = 9 previousInds = 9

`  `
3   Pass
assert(isequal(solve_maze([3 3 2 2 2;1 0 1 2 1;3 2 3 3 0;1 0 2 2 0;1 1 1 0 1]),[1 4 5 6 7;2 3 0 0 8;0 0 0 0 9;0 0 0 0 10;0 0 0 0 11]))

G = graph with properties: Edges: [25×1 table] Nodes: [25×0 table] minD = 10 previousInds = 1 mapInds = 2 newInds = 2 previousInds = 2 mapInds = 1 7 newInds = 7 previousInds = 7 mapInds = 2 6 newInds = 6 previousInds = 6 mapInds = 7 11 newInds = 11 previousInds = 11 mapInds = 6 12 16 newInds = 16 previousInds = 16 mapInds = 11 21 newInds = 21 previousInds = 21 mapInds = 16 22 newInds = 22 previousInds = 22 mapInds = 21 23 newInds = 23 previousInds = 23 mapInds = 18 22 24 newInds = 24 previousInds = 24 mapInds = 19 23 25 newInds = 25 previousInds = 25

`  `
4   Pass
assert(isequal(solve_maze([3 2 2 3 3 3 2 3;3 1 2 1 1 3 1 3;1 0 3 0 0 1 3 3;1 1 0 2 0 0 1 1;3 1 3 3 2 1 2 1;3 2 2 1 3 0 1 0;3 3 2 3 1 2 2 0;1 3 3 0 0 2 0 2;1 2 3 1 0 2 1 3;1 1 3 2 3 1 1 0]),[1 2 0 0 0 0 0 0;0 3 0 0 0 0 0 0;0 4 0 0 0 0 0 0;0 5 6 7 8 9 0 0;0 0 0 0 0 10 11 0;0 0 0 0 12 11 12 13;0 0 0 0 13 14 15 14;0 0 0 0 14 15 16 0;0 0 0 0 0 0 17 0;0 0 0 0 0 0 18 19]))

G = graph with properties: Edges: [69×1 table] Nodes: [80×0 table] minD = 18 previousInds = 1 mapInds = 11 newInds = 11 previousInds = 11 mapInds = 1 12 21 newInds = 12 previousInds = 12 mapInds = 11 13 22 newInds = 13 previousInds = 13 mapInds = 3 12 14 newInds = 14 previousInds = 14 mapInds = 13 15 24 newInds = 24 previousInds = 24 mapInds = 14 23 34 newInds = 34 previousInds = 34 mapInds = 24 44 newInds = 44 previousInds = 44 mapInds = 34 43 54 newInds = 54 previousInds = 54 mapInds = 44 53 55 newInds = 55 previousInds = 55 mapInds = 54 56 65 newInds = 56 65 previousInds = 56 65 mapInds = 46 55 newInds = 46 mapInds = 55 66 newInds = 46 66 previousInds = 46 66 mapInds = 47 56 newInds = 47 mapInds = 65 76 newInds = 47 76 previousInds = 47 76 mapInds = 46 48 57 newInds = 48 57 mapInds = 66 75 77 newInds = 48 57 77 previousInds = 48 57 77 mapInds = 38 47 49 58 newInds = 58 mapInds = 47 67 newInds = 58 67 mapInds = 67 76 newInds = 58 67 67 previousInds = 58 67 mapInds = 48 68 newInds = 68 mapInds = 57 68 77 newInds = 68 68 previousInds = 68 mapInds = 58 67 69 78 newInds = 69 previousInds = 69 mapInds = 68 70 newInds = 70 previousInds = 70 mapInds = 69 80 newInds = 80 previousInds = 80

`  `
5   Pass
assert(isequal(solve_maze([3 2 2 3 2 3 3 2 3 3 3 2 3 2 3 2 3;3 0 3 3 1 2 2 3 3 0 2 1 0 1 2 2 0;1 0 2 3 2 1 1 0 0 3 1 0 2 1 1 0 2;3 1 1 2 0 0 2 0 2 3 3 1 0 3 1 0 3;1 0 1 0 3 0 1 0 0 2 2 1 0 2 1 2 1;1 2 0 0 3 1 2 1 2 3 1 1 0 1 3 1 1;3 1 1 3 2 2 2 2 2 1 2 3 2 0 3 1 2;1 3 0 1 0 3 0 2 1 3 2 2 2 1 1 1 2;1 3 3 1 1 1 2 3 2 2 2 2 3 3 2 0 1;3 1 3 0 2 0 2 0 1 0 3 1 2 3 2 0 0;1 1 0 2 3 3 1 2 2 1 3 0 2 3 2 2 0;3 0 0 2 3 3 0 0 2 2 0 0 1 3 1 3 1]),[1 2 0 0 0 0 0 0 0 0 0 0 21 22 0 0 0;0 3 0 0 0 0 0 0 14 15 16 19 20 23 24 0 0;0 4 5 0 0 0 0 12 13 0 17 18 0 0 25 0 0;0 0 6 7 8 9 10 11 0 0 0 0 0 0 26 0 0;0 0 0 0 0 0 0 0 0 0 0 0 0 0 27 28 0;0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 29 0;0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 30 0;0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 31 32;0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 32 33;0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 33 34;0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 35;0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 36]))

G = graph with properties: Edges: [196×1 table] Nodes: [204×0 table] minD = 35 previousInds = 1 mapInds = 13 newInds = 13 previousInds = 13 mapInds = 1 14 25 newInds = 14 previousInds = 14 mapInds = 2 13 15 newInds = 15 previousInds = 15 mapInds = 3 14 16 27 newInds = 27 previousInds = 27 mapInds = 15 28 newInds = 28 previousInds = 28 mapInds = 27 29 40 newInds = 40 previousInds = 40 mapInds = 28 41 52 newInds = 52 previousInds = 52 mapInds = 40 51 64 newInds = 64 previousInds = 64 mapInds = 52 63 65 76 newInds = 76 previousInds = 76 mapInds = 64 77 88 newInds = 88 previousInds = 88 mapInds = 76 87 89 100 newInds = 87 previousInds = 87 mapInds = 75 86 88 99 newInds = 99 previousInds = 99 mapInds = 87 98 newInds = 98 previousInds = 98 mapInds = 99 110 newInds = 110 previousInds = 110 mapInds = 98 109 122 newInds = 122 previousInds = 122 mapInds = 110 123 newInds = 123 previousInds = 123 mapInds = 122 135 newInds = 135 previousInds = 135 mapInds = 123 134 136 147 newInds = 134 previousInds = 134 mapInds = 133 135 146 newInds = 146 previousInds = 146 mapInds = 134 145 newInds = 145 previousInds = 145 mapInds = 146 157 newInds = 157 previousInds = 157 mapInds = 145 158 newInds = 158 previousInds = 158 mapInds = 157 159 170 newInds = 170 previousInds = 170 mapInds = 158 171 182 newInds = 171 previousInds = 171 mapInds = 170 172 183 newInds = 172 previousInds = 172 mapInds = 171 173 184 newInds = 173 previousInds = 173 mapInds = 172 185 newInds = 185 previousInds = 185 mapInds = 173 186 newInds = 186 previousInds = 186 mapInds = 185 187 newInds = 187 previousInds = 187 mapInds = 186 188 199 newInds = 188 previousInds = 188 mapInds = 187 189 200 newInds = 189 200 previousInds = 189 200 mapInds = 177 188 190 newInds = 190 mapInds = 188 201 newInds = 190 201 previousInds = 190 201 mapInds = 178 189 202 newInds = 202 mapInds = 200 202 newInds = 202 202 previousInds = 202 mapInds = 190 201 203 newInds = 203 previousInds = 203 mapInds = 191 202 204 newInds = 204 previousInds = 204

`  `
6   Pass
assert(isequal(solve_maze([3 2 3 3 2 2 2 3 2 3 3 2 2 2 2 2 2 2 2 3 3 2 3 2 3;1 2 2 2 1 1 1 3 0 3 1 1 0 2 3 0 2 0 0 3 3 0 3 1 3;3 1 3 2 3 1 2 2 2 3 3 0 3 3 3 3 3 3 0 0 2 0 3 0 3;3 1 1 1 3 3 3 1 0 1 1 3 3 2 2 2 3 1 3 1 3 1 3 1 0;3 1 3 0 1 3 2 1 1 2 1 0 3 1 3 2 1 0 1 0 2 0 3 2 0;3 0 2 2 2 3 2 1 2 2 0 3 0 0 1 1 0 1 3 1 3 0 2 0 0;3 3 0 0 2 0 3 0 1 1 2 3 1 0 3 1 3 3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 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0;13 14 0 0 0 0 0 0 0 0 0 0 0 0 43 44 0 0 0 0 0 0 0 0 0;14 15 0 0 0 0 0 0 0 0 0 0 0 41 42 45 46 47 0 51 52 53 54 0 0;0 16 17 0 0 0 0 0 0 0 0 38 39 40 0 0 47 48 49 50 0 0 55 56 0;0 0 18 0 0 0 0 0 0 0 0 37 38 0 0 0 0 0 0 0 0 0 0 57 0;0 0 19 20 21 0 0 0 0 0 0 36 0 0 0 0 0 0 0 0 0 0 0 58 0;0 0 0 0 22 23 24 25 0 0 0 35 0 0 0 0 0 0 0 0 0 0 0 59 0;0 0 0 0 0 0 25 26 0 0 0 34 0 0 0 0 0 0 0 0 0 0 0 60 0;0 0 0 0 0 0 26 27 28 0 0 33 0 0 0 0 0 0 0 0 0 0 0 61 0;0 0 0 0 0 0 0 0 29 30 31 32 0 0 0 0 0 0 0 0 0 0 0 62 63;0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 64;0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 65;0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 66]))

G = graph with properties: Edges: [476×1 table] Nodes: [500×0 table] minD = 65 previousInds = 1 mapInds = 2 21 newInds = 2 previousInds = 2 mapInds = 1 22 newInds = 22 previousInds = 22 mapInds = 2 23 42 newInds = 23 previousInds = 23 mapInds = 22 24 newInds = 24 previousInds = 24 mapInds = 23 25 newInds = 25 previousInds = 25 mapInds = 24 26 newInds = 26 previousInds = 26 mapInds = 6 25 46 newInds = 46 previousInds = 46 mapInds = 26 47 66 newInds = 47 previousInds = 47 mapInds = 27 46 67 newInds = 27 previousInds = 27 mapInds = 28 47 newInds = 28 previousInds = 28 mapInds = 8 27 48 newInds = 8 previousInds = 8 mapInds = 7 9 28 newInds = 9 previousInds = 9 mapInds = 8 10 29 newInds = 10 29 previousInds = 10 29 mapInds = 9 30 newInds = 30 mapInds = 9 30 newInds = 30 30 previousInds = 30 mapInds = 10 29 31 newInds = 31 previousInds = 31 mapInds = 11 30 32 51 newInds = 51 previousInds = 51 mapInds = 31 52 newInds = 52 previousInds = 52 mapInds = 51 53 newInds = 53 previousInds = 53 mapInds = 52 73 newInds = 73 previousInds = 73 mapInds = 53 72 93 newInds = 93 previousInds = 93 mapInds = 73 92 94 newInds = 94 previousInds = 94 mapInds = 93 95 114 newInds = 114 previousInds = 114 mapInds = 94 134 newInds = 134 previousInds = 134 mapInds = 114 135 154 newInds = 135 154 previousInds = 135 154 mapInds = 134 136 newInds = 136 mapInds = 134 155 newInds = 136 155 previousInds = 136 155 mapInds = 116 135 137 156 newInds = 156 mapInds = 154 156 newInds = 156 156 previousInds = 156 mapInds = 136 155 157 176 newInds = 176 previousInds = 176 mapInds = 156 177 196 newInds = 177 previousInds = 177 mapInds = 176 197 newInds = 197 previousInds = 197 mapInds = 177 217 newInds = 217 previousInds = 217 mapInds = 197 218 237 newInds = 237 previousInds = 237 mapInds = 217 236 238 newInds = 236 previousInds = 236 mapInds = 216 235 237 256 newInds = 235 previousInds = 235 mapInds = 215 234 236 newInds = 234 previousInds = 234 mapInds = 214 233 235 newInds = 233 previousInds = 233 mapInds = 232 234 newInds = 232 previousInds = 232 mapInds = 231 233 252 newInds = 231 252 previousInds = 231 252 mapInds = 230 232 251 newInds = 251 mapInds = 232 251 253 newInds = 251 251 previousInds = 251 mapInds = 231 252 271 newInds = 271 previousInds = 271 mapInds = 251 270 newInds = 270 previousInds = 270 mapInds = 271 290 newInds = 290 previousInds = 290 mapInds = 270 289 newInds = 289 previousInds = 289 mapInds = 288 290 309 newInds = 309 previousInds = 309 mapInds = 289 308 310 newInds = 310 previousInds = 310 mapInds = 309 330 newInds = 330 previousInds = 330 mapInds = 310 331 350 newInds = 331 350 previousInds = 331 350 mapInds = 330 351 newInds = 351 mapInds = 330 349 351 370 newInds = 351 351 previousInds = 351 mapInds = 331 350 371 newInds = 371 previousInds = 371 mapInds = 351 372 391 newInds = 391 previousInds = 391 mapInds = 371 390 newInds = 390 previousInds = 390 mapInds = 389 391 410 newInds = 410 previousInds = 410 mapInds = 390 411 430 newInds = 430 previousInds = 430 mapInds = 410 429 450 newInds = 450 previousInds = 450 mapInds = 430 451 newInds = 451 previousInds = 451 mapInds = 450 471 newInds = 471 previousInds = 471 mapInds = 451 472 491 newInds = 472 previousInds = 472 mapInds = 471 473 492 newInds = 473 previousInds = 473 mapInds = 472 474 newInds = 474 previousInds = 474 mapInds = 454 473 475 newInds = 475 previousInds = 475 mapInds = 455 474 476 newInds = 476 previousInds = 476 mapInds = 456 475 477 newInds = 477 previousInds = 477 mapInds = 457 476 497 newInds = 497 previousInds = 497 mapInds = 477 496 498 newInds = 498 previousInds = 498 mapInds = 478 497 499 newInds = 499 previousInds = 499 mapInds = 479 498 500 newInds = 500 previousInds = 500

`  `
7   Pass
assert(isequal(solve_maze([3 2 2 3 3 3 2 3 2 3 2 3 2 3 2 2 2 2 3 3 3 2 2 2 2 2 2 2 3 3 2 2 2 2 2 2 2 3 3 3 2 2 3 2 3;3 2 0 1 3 2 1 0 1 2 2 1 2 1 1 0 2 1 0 2 1 3 3 2 3 3 0 0 3 2 3 1 3 1 3 3 0 3 1 0 0 2 1 1 0;1 1 3 0 3 3 0 1 2 2 3 0 0 2 2 3 3 0 0 1 3 3 3 1 3 2 3 1 3 3 1 0 0 0 0 2 2 2 0 3 3 0 1 1 2;1 0 2 2 0 1 0 2 2 3 2 1 0 3 1 3 1 1 1 3 3 2 1 1 2 0 1 1 2 1 3 0 3 3 0 1 1 2 2 3 1 1 1 1 3;1 1 0 0 0 3 0 2 2 0 0 2 1 3 2 3 2 1 3 2 0 2 3 0 0 0 3 0 0 1 0 1 0 2 0 1 1 1 2 3 0 2 1 3 1;3 3 1 1 2 0 3 0 0 3 2 1 1 1 3 1 3 0 1 0 1 0 3 1 3 1 2 3 1 2 1 1 3 3 2 1 2 1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 0 0 0 104 0 0 0;0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 105 106 107 0;0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 108 0;0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 109 110]))

G = graph with properties: Edges: [2241×1 table] Nodes: [2250×0 table] minD = 109 previousInds = 1 mapInds = 51 newInds = 51 previousInds = 51 mapInds = 1 101 newInds = 101 previousInds = 101 mapInds = 51 102 newInds = 102 previousInds = 102 mapInds = 52 101 newInds = 52 previousInds = 52 mapInds = 2 53 102 newInds = 53 previousInds = 53 mapInds = 52 54 newInds = 54 previousInds = 54 mapInds = 4 53 55 104 newInds = 55 104 previousInds = 55 104 mapInds = 54 105 newInds = 105 mapInds = 54 105 154 newInds = 105 105 154 previousInds = 105 154 mapInds = 55 104 106 155 newInds = 155 mapInds = 104 155 204 newInds = 155 155 previousInds = 155 mapInds = 105 154 156 205 newInds = 156 previousInds = 156 mapInds = 155 157 206 newInds = 157 206 previousInds = 157 206 mapInds = 107 156 158 207 newInds = 158 207 mapInds = 156 207 256 newInds = 158 207 207 previousInds = 158 207 mapInds = 108 157 208 newInds = 208 mapInds = 157 206 208 newInds = 208 208 previousInds = 208 mapInds = 158 207 209 newInds = 209 previousInds = 209 mapInds = 159 208 210 259 newInds = 210 previousInds = 210 mapInds = 209 211 260 newInds = 211 previousInds = 211 mapInds = 161 210 261 newInds = 261 previousInds = 261 mapInds = 211 311 newInds = 311 previousInds = 311 mapInds = 261 310 312 361 newInds = 312 previousInds = 312 mapInds = 311 313 362 newInds = 362 previousInds = 362 mapInds = 312 412 newInds = 412 previousInds = 412 mapInds = 362 413 newInds = 413 previousInds = 413 mapInds = 363 412 414 463 newInds = 463 previousInds = 463 mapInds = 413 462 464 513 newInds = 513 previousInds = 513 mapInds = 463 512 563 newInds = 563 previousInds = 563 mapInds = 513 562 564 newInds = 564 previousInds = 564 mapInds = 563 614 newInds = 614 previousInds = 614 mapInds = 564 615 664 newInds = 664 previousInds = 664 mapInds = 614 714 newInds = 714 previousInds = 714 mapInds = 664 713 newInds = 713 previousInds = 713 mapInds = 714 763 newInds = 763 previousInds = 763 mapInds = 713 762 813 newInds = 813 previousInds = 813 mapInds = 763 863 newInds = 863 previousInds = 863 mapInds = 813 864 913 newInds = 913 previousInds = 913 mapInds = 863 912 963 newInds = 963 previousInds = 963 mapInds = 913 962 964 newInds = 962 previousInds = 962 mapInds = 963 1012 newInds = 1012 previousInds = 1012 mapInds = 962 1011 1013 1062 newInds = 1062 previousInds = 1062 mapInds = 1012 1063 1112 newInds = 1112 previousInds = 1112 mapInds = 1062 1113 1162 newInds = 1162 previousInds = 1162 mapInds = 1112 1212 newInds = 1212 previousInds = 1212 mapInds = 1162 1211 newInds = 1211 previousInds = 1211 mapInds = 1161 1210 1212 1261 newInds = 1261 previousInds = 1261 mapInds = 1211 1260 1311 newInds = 1311 previousInds = 1311 mapInds = 1261 1361 newInds = 1361 previousInds = 1361 mapInds = 1311 1360 1411 newInds = 1360 previousInds = 1360 mapInds = 1359 1361 1410 newInds = 1410 previousInds = 1410 mapInds = 1360 1460 newInds = 1460 previousInds = 1460 mapInds = 1410 1459 1510 newInds = 1510 previousInds = 1510 mapInds = 1460 1511 newInds = 1511 previousInds = 1511 mapInds = 1461 1510 1512 newInds = 1512 previousInds = 1512 mapInds = 1462 1511 1562 newInds = 1562 previousInds = 1562 mapInds = 1512 1561 1563 1612 newInds = 1612 previousInds = 1612 mapInds = 1562 1611 1662 newInds = 1662 previousInds = 1662 mapInds = 1612 1661 1663 newInds = 1663 previousInds = 1663 mapInds = 1662 1664 1713 newInds = 1664 1713 previousInds = 1664 1713 mapInds = 1663 1665 1714 newInds = 1714 mapInds = 1663 1763 newInds = 1714 1763 previousInds = 1714 1763 mapInds = 1664 1764 newInds = 1764 mapInds = 1713 1762 1764 1813 newInds = 1764 1764 previousInds = 1764 mapInds = 1714 1763 1765 1814 newInds = 1765 previousInds = 1765 mapInds = 1764 1766 1815 newInds = 1766 previousInds = 1766 mapInds = 1716 1765 1767 newInds = 1767 previousInds = 1767 mapInds = 1766 1768 newInds = 1768 previousInds = 1768 mapInds = 1767 1769 1818 newInds = 1769 previousInds = 1769 mapInds = 1768 1770 newInds = 1770 previousInds = 1770 mapInds = 1720 1769 1820 newInds = 1820 previousInds = 1820 mapInds = 1770 1821 1870 newInds = 1821 previousInds = 1821 mapInds = 1820 1822 1871 newInds = 1822 previousInds = 1822 mapInds = 1821 1823 newInds = 1823 previousInds = 1823 mapInds = 1822 1873 newInds = 1873 previousInds = 1873 mapInds = 1823 1874 1923 newInds = 1874 previousInds = 1874 mapInds = 1873 1875 1924 newInds = 1875 previousInds = 1875 mapInds = 1874 1876 1925 newInds = 1876 previousInds = 1876 mapInds = 1826 1875 1877 1926 newInds = 1877 previousInds = 1877 mapInds = 1827 1876 1927 newInds = 1827 previousInds = 1827 mapInds = 1777 1828 1877 newInds = 1828 previousInds = 1828 mapInds = 1778 1827 1829 newInds = 1829 previousInds = 1829 mapInds = 1779 1828 1830 newInds = 1830 previousInds = 1830 mapInds = 1780 1829 1880 newInds = 1880 previousInds = 1880 mapInds = 1830 1879 1881 1930 newInds = 1881 1930 previousInds = 1881 1930 mapInds = 1831 1880 1931 newInds = 1931 mapInds = 1880 1929 1931 1980 newInds = 1931 1931 previousInds = 1931 mapInds = 1881 1930 1932 newInds = 1932 previousInds = 1932 mapInds = 1882 1931 1933 1982 newInds = 1933 1982 previousInds = 1933 1982 mapInds = 1932 1983 newInds = 1983 mapInds = 1932 1981 1983 newInds = 1983 1983 previousInds = 1983 mapInds = 1933 1982 1984 2033 newInds = 1984 previousInds = 1984 mapInds = 1934 1983 2034 newInds = 1934 previousInds = 1934 mapInds = 1884 1935 1984 newInds = 1935 previousInds = 1935 mapInds = 1885 1934 1985 newInds = 1985 previousInds = 1985 mapInds = 1935 1986 newInds = 1986 previousInds = 1986 mapInds = 1936 1985 1987 newInds = 1987 previousInds = 1987 mapInds = 1986 2037 newInds = 2037 previousInds = 2037 mapInds = 1987 2038 newInds = 2038 previousInds = 2038 mapInds = 1988 2037 2088 newInds = 2088 previousInds = 2088 mapInds = 2038 2089 newInds = 2089 previousInds = 2089 mapInds = 2039 2088 2090 newInds = 2090 previousInds = 2090 mapInds = 2040 2089 2091 2140 newInds = ...

`  `

### Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!