Cody

Solution 2613496

Submitted on 25 Jun 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
row_sums = [3 5 11]; col_sums = [4 7 8]; x = matcat(row_sums,col_sums); assert(all(x(:)>=0)) assert(isequal(floor(x),x)) assert(isequal(sum(x,2)',row_sums)) assert(isequal(sum(x,1),col_sums))

C = 1×6929 cell array Columns 1 through 11 {1×3 double} {1×3 double} {1×3 double} {1×3 double} {1×3 double} {1×3 double} {1×3 double} {1×3 double} {1×3 double} {1×3 double} {1×3 double} Columns 12 through 22 {1×3 double} {1×3 double} {1×3 double} {1×3 double} {1×3 double} {1×3 double} {1×3 double} {1×3 double} {1×3 double} {1×3 double} {1×3 double} Columns 23 through 33 {1×3 double} {1×3 double} {1×3 double} {1×3 double} {1×3 double} {1×3 double} {1×3 double} {1×3 double} {1×3 double} {1×3 double} {1×3 double} Columns 34 through 44 {1×3 double} {1×3 double} {1×3 double} {1×3 double} {1×3 double} {1×3 double} {1×3 double} {1×3 double} {1×3 double} {1×3 double} {1×3 double} Columns 45 through 55 {1×3 double} {1×3 double} {1×3 double} {1×3 double} {1×3 double} {1×3 double} {1×3 double} {1×3 double} {1×3 double} {1×3 double} {1×3 double} Columns 56 through 66 {1×3 double} {1×3 double} {1×3 double} {1×3 double} {1×3 double} {1×3 double} {1×3 double} {1×3 double} {1×3 double} {1×3 double} {1×3 double} Columns 67 through 77 {1×3 double} {1×3 double} {1×3 double} {1×3 double} {1×3 double} {1×3 double} {1×3 double} {1×3 double} {1×3 double} {1×3 double} {1×3 double} Columns 78 through 88 {1×3 double} {1×3 double} {1×3 double} {1×3 double} {1×3 double} {1×3 double} {1×3 double} {1×3 double} {1×3 double} {1×3 double} {1×3 double} Columns 89 through 99 {1×3 double} {1×3 double} {1×3 double} {1×3 double} {1×3 double} {1×3 double} {1×3 double} {1×3 double} {1×3 double} {1×3 double} {1×3 double} Columns 100 through 110 {1×3 double} {1×3 double} {1×3 double} {1×3 double} {1×3 double} {1×3 double} {1×3 double} {1×3 double} {1×3 double} {1×3 double} {1×3 double} Columns 111 through 121 {1×3 double} {1×3 double} {1×3 double} {1×3 double} {1×3 double} {1×3 double} {1×3 double} {1×3 double} {1×3 double} {1×3 double} {1×3 double} Columns 122 through 132 {1×3 double} {1×3 double} {1×3 double} {1×3 double} {1×3 double} {1×3 double} {1×3 double} {1×3 double} {1×3 double} {1×3 double} {1×3 double} Columns 133 through 143 {1×3 double} {1×3 double} {1×3 double} {1×3 double} {1×3 double} {1×3 double} {1×3 double} {1×3 double} {1×3 double} {1×3 double} {1×3 double} Columns 144 through 154 {1×3 double} {1×3 double} {1×3 double} {1×3 double} {1×3 double} {1×3 double} {1×3 double} {1×3 double} {1×3 double} {1×3 double} {1×3 double} Columns 155 through 165 {1×3 double} {1×3 double} {1×3 double} {1×3 double} {1×3 double} {1×3 double} {1×3 double} {1×3 double} {1×3 double} {1×3 double} {1×3 double} Columns 166 through 176 {1×3 double} {1×3 double} {1×3 double} {1×3 double} {1×3 double} {1×3 double} {1×3 double} {1×3 double} {1×3 double} {1×3 double} {1×3 double} Columns 177 through 187 {1×3 double} {1×3 double} {1×3 double} {1×3 double} {1×3 double} {1×3 double} {1×3 double} {1×3 double} {1×3 double} {1×3 double} {1×3 double} Columns 188 through 198 {1×3 double} {1×3 double} {1×3 double} {1×3 double} {1×3 double} {1×3 double} {1×3 double} {1×3 double} {1×3 double} {1×3 double} {1×3 double} Columns 199 through 209 {1×3 double} {1×3 double} {1×3 double} {1×3 double} {1×3 double} {1×3 double} {1×3 double} {1×3 double} {1×3 double} {1×3 double} {1×3 double} Columns 210 through 220 {1×3 double} {1×3 double} {1×3 double} {1×3 double} {1×3 double} {1×3 double} {1×3 double} {1×3 double} {1×3 double} {1×3 double} {1×3 double} Columns 221 through 231 {1×3 double} {1×3 double} {1×3 double} {1×3 double} {1×3 double} {1×3 double} {1×3 double} {1×3 double} {1×3 double} {1×3 double} {1×3 double} Columns 232 through 242 {1×3 double} {1×3 double} {1×3 double} {1×3 double} {1×3 double} {1×3 double} {1×3 double} {1×3 double} {1×3 double} {1×3 double} {1×3 double} Columns 243 through 253 {1×3 double} {1×3 double} {1×3 double} {1×3 double} {1×3 double} {1×3 double} {1×3 double} {1×3 double} {1×3 double} {1×3 double} {1×3 double} Columns 254 through 264 {1×3 double} {1×3 double} {1×3 double} {1×3 double} {1×3 double} {1×3 double} {1×3 double} {1×3 double} {1×3 double} {1×3 double} {1×3 double} Columns 265 through 275 {1×3 double} {1×3 double} {1×3 double} {1×3 double} {1×3 double} {1×3 double} {1×3 double} {1×3 double} {1×3 double} {1×3 double} {1×3 double} Columns 276 through 286 {1×3 double} {1×3 double} {1×3 double} {1×3 double} {1×3 double} {1×3 double} {1×3 double} {1×3 double} {1×3 double} {1×3 double} {1×3 double} Columns 287 through 297 {1×3 double} {1×3 double} {1×3 double} {1×3 double} {1×3 double} {1×3 double} {1×3 double} {1×3 double} {1×3 double} {1×3 double} {1×3 double} Columns 298 through 308 {1×3 double} {1×3 double} {1×3 double} {1×3 double} {1×3 double} {1×3 double} {1×3 double} {1×3 double} {1×3 double} {1×3 double} {1×3 double} Columns 309 through 319 {1×3 double} {1×3 double} {1×3 double} {1×3 double} {1×3 double} {1×3 double} {1×3 double} {1×3 double} {1×3 double} {1×3 double} {1×3 double} Columns 320 through 330 {1×3 double} {1×3 double} {1×3 double} {1×3 double} {1×3 double} {1×3 double} {1×3 double} {1×3 double} {1×3 double} {1×3 double} {1×3 double} Columns 331 through 341 {1×3 double} {1×3 double} {1×3 double} {1×3 double} {1×3 double} {1×3 double} {1×3 double} {1×3 double} {1×3 double} {1×3 double} {1×3 double} Columns 342 through 352 {1×3 double} {1×3 double} {1×3 double} {1×3 double} {1×3 double} {1×3 double} {1×3 double} {1×3 double} {1×3 double} {1×3 double} {1×3 double} Columns 353 through 363 {1×3 double} {1×3 double} {1×3 double} {1×3 double} {1×3 double} {1×3 double} {1×3 double} {1×3 double} {1×3 double} {1×3 double} {1×3 double} Columns 364 through 374 {1×3 double} {1×3 double} {1×3 double} {1×3 double} {1×3 double} {1×3 double} {1×3 double} {1×3 double} {1×3 double} {1×3 double} {1×3 double} Columns 375 through 385 {1×3 double} {1×3 double} {1×3 double} {1×3 double} {1×3 double} {1×3 double} {1×3 double} {1×3 double} {1×3 double} {1×3 double} {1×3 double} Columns 386 through 396 {1×3 double} {1×3 double} {1×3 double} {1×3 double} {1×3 double} {1×3 double} {1×3 double} {1×3 double} {1×3 double} {1×3 double} {1×3 double} Columns 397 through 407 {1×3 double} {1×3 double} {1×3 double} {1×3 double} {1×3 double} {1×3 double} {1×3 double} {1×3 double} {1×3 double} {1×3 double} {1×3 double} Columns 408 through 418 {1×3 double} {1×3 double} {1×3 double} {1×3 double} {1×3 double} {1×3 double} {1×3 double} {1×3 double} {1×3 double} {1×3 double} {1×3 double} Columns 419 through 429 {1×3 double} {1×3 double} {1×3 double} {1×3 double} {1×3 double} {1×3 double} {1×3 double} {1×3 double} {1×3 double} {1×3 double} {1×3 double} Columns 430 through 440 {1×3 double} {1×3 double} {1×3 double} {1×3 double} {1×3 double} {1×3 double} {1×3 double} {1×3 double} {1×3 double} {1×3 double} {1×3 double} Columns 441 through 451 {1×3 double} {1×3 double} {1×3 double} {1×3 double} {1×3 double} {1×3 double} {1×3 double} {1×3 double} {1×3 double} {1×3 double} {1×3 double} Columns 452 through 462 {1×3 double} {1×3 double} {1×3 double} {1×3 double} {1×3 double} {1×3 double} {1×3 double} {1×3 double} {1×3 double} {1×3 double} {1×3 double} Columns 463 through 473 {1×3 double} {1×3 double} {1×3 double} {1×3 double} {1×3 double} {1×3 double} {1×3 double} {1×3 double} {1×3 double} {1×3 double} {1×3 double} Columns 474 through 484 {1×3 double} {1×3 double} {1×3 double} {1×3 double} {1×3 double} {1×3 double} {1×3 double} {1×3 double} {1×3 double} {1×3 double} {1×3 double} Columns 485 through 495 {1×3 double} {1×3 double} {1×3 double} {1×3 double} {1×3 double} {1×3 double} {1×3 double} {1×3 double} {1×3 double} {1×3 double} {1×3 double} Columns 496 through 506 {1×3 double} {1×3 double} {1×3 double} {1×3 double} {1×3 double} {1×3 double} {1×3 double} {1×3 double} {1×3 double} {1×3 double} {1×3 double} Columns 507 through 517 {1×3 double} {1×3 double} {1×3 double} {1×3 double} {1×3 double} {1×3 double} {1×3 double} {1×3 double} {1×3 double} {1×3 double} {1×3 double} Columns 518 through 528 {1×3 double} {1×3 double} {1×3 double} {1×3 double} {1×3 double} {1×3 double} {1×3 double} {1×3 double} {1×3 double} {1×3 double} {1×3 double} Columns 529 through 539 {1×3 double} {1×3 double} {1×3 double} {1×3 double} {1×3 double} {1×3 double} {1×3 double} {1×3 doubl...

Output argument "x" (and maybe others) not assigned during call to "matcat". Error in Test1 (line 3) x = matcat(row_sums,col_sums);

2   Fail
row_sums = [2 2 2 2 2 6]; col_sums = [2 3 3 3 3 2]; x = matcat(row_sums,col_sums); assert(all(x(:)>=0)) assert(isequal(floor(x),x)) assert(isequal(sum(x,2)',row_sums)) assert(isequal(sum(x,1),col_sums))

C = 1×2725 cell array Columns 1 through 11 {1×6 double} {1×6 double} {1×6 double} {1×6 double} {1×6 double} {1×6 double} {1×6 double} {1×6 double} {1×6 double} {1×6 double} {1×6 double} Columns 12 through 22 {1×6 double} {1×6 double} {1×6 double} {1×6 double} {1×6 double} {1×6 double} {1×6 double} {1×6 double} {1×6 double} {1×6 double} {1×6 double} Columns 23 through 33 {1×6 double} {1×6 double} {1×6 double} {1×6 double} {1×6 double} {1×6 double} {1×6 double} {1×6 double} {1×6 double} {1×6 double} {1×6 double} Columns 34 through 44 {1×6 double} {1×6 double} {1×6 double} {1×6 double} {1×6 double} {1×6 double} {1×6 double} {1×6 double} {1×6 double} {1×6 double} {1×6 double} Columns 45 through 55 {1×6 double} {1×6 double} {1×6 double} {1×6 double} {1×6 double} {1×6 double} {1×6 double} {1×6 double} {1×6 double} {1×6 double} {1×6 double} Columns 56 through 66 {1×6 double} {1×6 double} {1×6 double} {1×6 double} {1×6 double} {1×6 double} {1×6 double} {1×6 double} {1×6 double} {1×6 double} {1×6 double} Columns 67 through 77 {1×6 double} {1×6 double} {1×6 double} {1×6 double} {1×6 double} {1×6 double} {1×6 double} {1×6 double} {1×6 double} {1×6 double} {1×6 double} Columns 78 through 88 {1×6 double} {1×6 double} {1×6 double} {1×6 double} {1×6 double} {1×6 double} {1×6 double} {1×6 double} {1×6 double} {1×6 double} {1×6 double} Columns 89 through 99 {1×6 double} {1×6 double} {1×6 double} {1×6 double} {1×6 double} {1×6 double} {1×6 double} {1×6 double} {1×6 double} {1×6 double} {1×6 double} Columns 100 through 110 {1×6 double} {1×6 double} {1×6 double} {1×6 double} {1×6 double} {1×6 double} {1×6 double} {1×6 double} {1×6 double} {1×6 double} {1×6 double} Columns 111 through 121 {1×6 double} {1×6 double} {1×6 double} {1×6 double} {1×6 double} {1×6 double} {1×6 double} {1×6 double} {1×6 double} {1×6 double} {1×6 double} Columns 122 through 132 {1×6 double} {1×6 double} {1×6 double} {1×6 double} {1×6 double} {1×6 double} {1×6 double} {1×6 double} {1×6 double} {1×6 double} {1×6 double} Columns 133 through 143 {1×6 double} {1×6 double} {1×6 double} {1×6 double} {1×6 double} {1×6 double} {1×6 double} {1×6 double} {1×6 double} {1×6 double} {1×6 double} Columns 144 through 154 {1×6 double} {1×6 double} {1×6 double} {1×6 double} {1×6 double} {1×6 double} {1×6 double} {1×6 double} {1×6 double} {1×6 double} {1×6 double} Columns 155 through 165 {1×6 double} {1×6 double} {1×6 double} {1×6 double} {1×6 double} {1×6 double} {1×6 double} {1×6 double} {1×6 double} {1×6 double} {1×6 double} Columns 166 through 176 {1×6 double} {1×6 double} {1×6 double} {1×6 double} {1×6 double} {1×6 double} {1×6 double} {1×6 double} {1×6 double} {1×6 double} {1×6 double} Columns 177 through 187 {1×6 double} {1×6 double} {1×6 double} {1×6 double} {1×6 double} {1×6 double} {1×6 double} {1×6 double} {1×6 double} {1×6 double} {1×6 double} Columns 188 through 198 {1×6 double} {1×6 double} {1×6 double} {1×6 double} {1×6 double} {1×6 double} {1×6 double} {1×6 double} {1×6 double} {1×6 double} {1×6 double} Columns 199 through 209 {1×6 double} {1×6 double} {1×6 double} {1×6 double} {1×6 double} {1×6 double} {1×6 double} {1×6 double} {1×6 double} {1×6 double} {1×6 double} Columns 210 through 220 {1×6 double} {1×6 double} {1×6 double} {1×6 double} {1×6 double} {1×6 double} {1×6 double} {1×6 double} {1×6 double} {1×6 double} {1×6 double} Columns 221 through 231 {1×6 double} {1×6 double} {1×6 double} {1×6 double} {1×6 double} {1×6 double} {1×6 double} {1×6 double} {1×6 double} {1×6 double} {1×6 double} Columns 232 through 242 {1×6 double} {1×6 double} {1×6 double} {1×6 double} {1×6 double} {1×6 double} {1×6 double} {1×6 double} {1×6 double} {1×6 double} {1×6 double} Columns 243 through 253 {1×6 double} {1×6 double} {1×6 double} {1×6 double} {1×6 double} {1×6 double} {1×6 double} {1×6 double} {1×6 double} {1×6 double} {1×6 double} Columns 254 through 264 {1×6 double} {1×6 double} {1×6 double} {1×6 double} {1×6 double} {1×6 double} {1×6 double} {1×6 double} {1×6 double} {1×6 double} {1×6 double} Columns 265 through 275 {1×6 double} {1×6 double} {1×6 double} {1×6 double} {1×6 double} {1×6 double} {1×6 double} {1×6 double} {1×6 double} {1×6 double} {1×6 double} Columns 276 through 286 {1×6 double} {1×6 double} {1×6 double} {1×6 double} {1×6 double} {1×6 double} {1×6 double} {1×6 double} {1×6 double} {1×6 double} {1×6 double} Columns 287 through 297 {1×6 double} {1×6 double} {1×6 double} {1×6 double} {1×6 double} {1×6 double} {1×6 double} {1×6 double} {1×6 double} {1×6 double} {1×6 double} Columns 298 through 308 {1×6 double} {1×6 double} {1×6 double} {1×6 double} {1×6 double} {1×6 double} {1×6 double} {1×6 double} {1×6 double} {1×6 double} {1×6 double} Columns 309 through 319 {1×6 double} {1×6 double} {1×6 double} {1×6 double} {1×6 double} {1×6 double} {1×6 double} {1×6 double} {1×6 double} {1×6 double} {1×6 double} Columns 320 through 330 {1×6 double} {1×6 double} {1×6 double} {1×6 double} {1×6 double} {1×6 double} {1×6 double} {1×6 double} {1×6 double} {1×6 double} {1×6 double} Columns 331 through 341 {1×6 double} {1×6 double} {1×6 double} {1×6 double} {1×6 double} {1×6 double} {1×6 double} {1×6 double} {1×6 double} {1×6 double} {1×6 double} Columns 342 through 352 {1×6 double} {1×6 double} {1×6 double} {1×6 double} {1×6 double} {1×6 double} {1×6 double} {1×6 double} {1×6 double} {1×6 double} {1×6 double} Columns 353 through 363 {1×6 double} {1×6 double} {1×6 double} {1×6 double} {1×6 double} {1×6 double} {1×6 double} {1×6 double} {1×6 double} {1×6 double} {1×6 double} Columns 364 through 374 {1×6 double} {1×6 double} {1×6 double} {1×6 double} {1×6 double} {1×6 double} {1×6 double} {1×6 double} {1×6 double} {1×6 double} {1×6 double} Columns 375 through 385 {1×6 double} {1×6 double} {1×6 double} {1×6 double} {1×6 double} {1×6 double} {1×6 double} {1×6 double} {1×6 double} {1×6 double} {1×6 double} Columns 386 through 396 {1×6 double} {1×6 double} {1×6 double} {1×6 double} {1×6 double} {1×6 double} {1×6 double} {1×6 double} {1×6 double} {1×6 double} {1×6 double} Columns 397 through 407 {1×6 double} {1×6 double} {1×6 double} {1×6 double} {1×6 double} {1×6 double} {1×6 double} {1×6 double} {1×6 double} {1×6 double} {1×6 double} Columns 408 through 418 {1×6 double} {1×6 double} {1×6 double} {1×6 double} {1×6 double} {1×6 double} {1×6 double} {1×6 double} {1×6 double} {1×6 double} {1×6 double} Columns 419 through 429 {1×6 double} {1×6 double} {1×6 double} {1×6 double} {1×6 double} {1×6 double} {1×6 double} {1×6 double} {1×6 double} {1×6 double} {1×6 double} Columns 430 through 440 {1×6 double} {1×6 double} {1×6 double} {1×6 double} {1×6 double} {1×6 double} {1×6 double} {1×6 double} {1×6 double} {1×6 double} {1×6 double} Columns 441 through 451 {1×6 double} {1×6 double} {1×6 double} {1×6 double} {1×6 double} {1×6 double} {1×6 double} {1×6 double} {1×6 double} {1×6 double} {1×6 double} Columns 452 through 462 {1×6 double} {1×6 double} {1×6 double} {1×6 double} {1×6 double} {1×6 double} {1×6 double} {1×6 double} {1×6 double} {1×6 double} {1×6 double} Columns 463 through 473 {1×6 double} {1×6 double} {1×6 double} {1×6 double} {1×6 double} {1×6 double} {1×6 double} {1×6 double} {1×6 double} {1×6 double} {1×6 double} Columns 474 through 484 {1×6 double} {1×6 double} {1×6 double} {1×6 double} {1×6 double} {1×6 double} {1×6 double} {1×6 double} {1×6 double} {1×6 double} {1×6 double} Columns 485 through 495 {1×6 double} {1×6 double} {1×6 double} {1×6 double} {1×6 double} {1×6 double} {1×6 double} {1×6 double} {1×6 double} {1×6 double} {1×6 double} Columns 496 through 506 {1×6 double} {1×6 double} {1×6 double} {1×6 double} {1×6 double} {1×6 double} {1×6 double} {1×6 double} {1×6 double} {1×6 double} {1×6 double} Columns 507 through 517 {1×6 double} {1×6 double} {1×6 double} {1×6 double} {1×6 double} {1×6 double} {1×6 double} {1×6 double} {1×6 double} {1×6 double} {1×6 double} Columns 518 through 528 {1×6 double} {1×6 double} {1×6 double} {1×6 double} {1×6 double} {1×6 double} {1×6 double} {1×6 double} {1×6 double} {1×6 double} {1×6 double} Columns 529 through 539 {1×6 double} {1×6 double} {1×6 double} {1×6 double} {1×6 double} {1×6 double} {1×6 double} {1×6 doubl...

Output argument "x" (and maybe others) not assigned during call to "matcat". Error in Test2 (line 3) x = matcat(row_sums,col_sums);

3   Fail
row_sums = [65 65 65 65 65]; col_sums = [65 65 65 65 65]; x = matcat(row_sums,col_sums); assert(all(x(:)>=0)) assert(isequal(floor(x),x)) assert(isequal(sum(x,2)',row_sums)) assert(isequal(sum(x,1),col_sums))

C = 1×29 cell array Columns 1 through 11 {1×5 double} {1×5 double} {1×5 double} {1×5 double} {1×5 double} {1×5 double} {1×5 double} {1×5 double} {1×5 double} {1×5 double} {1×5 double} Columns 12 through 22 {1×5 double} {1×5 double} {1×5 double} {1×5 double} {1×5 double} {1×5 double} {1×5 double} {1×5 double} {1×5 double} {1×5 double} {1×5 double} Columns 23 through 29 {1×5 double} {1×5 double} {1×5 double} {1×5 double} {1×5 double} {1×5 double} {1×5 double}

Output argument "x" (and maybe others) not assigned during call to "matcat". Error in Test3 (line 3) x = matcat(row_sums,col_sums);

4   Fail
row_sums = [22 34 33]; col_sums = [15 23 18 21 12]; x = matcat(row_sums,col_sums); assert(all(x(:)>=0)) assert(isequal(floor(x),x)) assert(isequal(sum(x,2)',row_sums)) assert(isequal(sum(x,1),col_sums))

C = 1×1637 cell array Columns 1 through 11 {1×5 double} {1×5 double} {1×5 double} {1×5 double} {1×5 double} {1×5 double} {1×5 double} {1×5 double} {1×5 double} {1×5 double} {1×5 double} Columns 12 through 22 {1×5 double} {1×5 double} {1×5 double} {1×5 double} {1×5 double} {1×5 double} {1×5 double} {1×5 double} {1×5 double} {1×5 double} {1×5 double} Columns 23 through 33 {1×5 double} {1×5 double} {1×5 double} {1×5 double} {1×5 double} {1×5 double} {1×5 double} {1×5 double} {1×5 double} {1×5 double} {1×5 double} Columns 34 through 44 {1×5 double} {1×5 double} {1×5 double} {1×5 double} {1×5 double} {1×5 double} {1×5 double} {1×5 double} {1×5 double} {1×5 double} {1×5 double} Columns 45 through 55 {1×5 double} {1×5 double} {1×5 double} {1×5 double} {1×5 double} {1×5 double} {1×5 double} {1×5 double} {1×5 double} {1×5 double} {1×5 double} Columns 56 through 66 {1×5 double} {1×5 double} {1×5 double} {1×5 double} {1×5 double} {1×5 double} {1×5 double} {1×5 double} {1×5 double} {1×5 double} {1×5 double} Columns 67 through 77 {1×5 double} {1×5 double} {1×5 double} {1×5 double} {1×5 double} {1×5 double} {1×5 double} {1×5 double} {1×5 double} {1×5 double} {1×5 double} Columns 78 through 88 {1×5 double} {1×5 double} {1×5 double} {1×5 double} {1×5 double} {1×5 double} {1×5 double} {1×5 double} {1×5 double} {1×5 double} {1×5 double} Columns 89 through 99 {1×5 double} {1×5 double} {1×5 double} {1×5 double} {1×5 double} {1×5 double} {1×5 double} {1×5 double} {1×5 double} {1×5 double} {1×5 double} Columns 100 through 110 {1×5 double} {1×5 double} {1×5 double} {1×5 double} {1×5 double} {1×5 double} {1×5 double} {1×5 double} {1×5 double} {1×5 double} {1×5 double} Columns 111 through 121 {1×5 double} {1×5 double} {1×5 double} {1×5 double} {1×5 double} {1×5 double} {1×5 double} {1×5 double} {1×5 double} {1×5 double} {1×5 double} Columns 122 through 132 {1×5 double} {1×5 double} {1×5 double} {1×5 double} {1×5 double} {1×5 double} {1×5 double} {1×5 double} {1×5 double} {1×5 double} {1×5 double} Columns 133 through 143 {1×5 double} {1×5 double} {1×5 double} {1×5 double} {1×5 double} {1×5 double} {1×5 double} {1×5 double} {1×5 double} {1×5 double} {1×5 double} Columns 144 through 154 {1×5 double} {1×5 double} {1×5 double} {1×5 double} {1×5 double} {1×5 double} {1×5 double} {1×5 double} {1×5 double} {1×5 double} {1×5 double} Columns 155 through 165 {1×5 double} {1×5 double} {1×5 double} {1×5 double} {1×5 double} {1×5 double} {1×5 double} {1×5 double} {1×5 double} {1×5 double} {1×5 double} Columns 166 through 176 {1×5 double} {1×5 double} {1×5 double} {1×5 double} {1×5 double} {1×5 double} {1×5 double} {1×5 double} {1×5 double} {1×5 double} {1×5 double} Columns 177 through 187 {1×5 double} {1×5 double} {1×5 double} {1×5 double} {1×5 double} {1×5 double} {1×5 double} {1×5 double} {1×5 double} {1×5 double} {1×5 double} Columns 188 through 198 {1×5 double} {1×5 double} {1×5 double} {1×5 double} {1×5 double} {1×5 double} {1×5 double} {1×5 double} {1×5 double} {1×5 double} {1×5 double} Columns 199 through 209 {1×5 double} {1×5 double} {1×5 double} {1×5 double} {1×5 double} {1×5 double} {1×5 double} {1×5 double} {1×5 double} {1×5 double} {1×5 double} Columns 210 through 220 {1×5 double} {1×5 double} {1×5 double} {1×5 double} {1×5 double} {1×5 double} {1×5 double} {1×5 double} {1×5 double} {1×5 double} {1×5 double} Columns 221 through 231 {1×5 double} {1×5 double} {1×5 double} {1×5 double} {1×5 double} {1×5 double} {1×5 double} {1×5 double} {1×5 double} {1×5 double} {1×5 double} Columns 232 through 242 {1×5 double} {1×5 double} {1×5 double} {1×5 double} {1×5 double} {1×5 double} {1×5 double} {1×5 double} {1×5 double} {1×5 double} {1×5 double} Columns 243 through 253 {1×5 double} {1×5 double} {1×5 double} {1×5 double} {1×5 double} {1×5 double} {1×5 double} {1×5 double} {1×5 double} {1×5 double} {1×5 double} Columns 254 through 264 {1×5 double} {1×5 double} {1×5 double} {1×5 double} {1×5 double} {1×5 double} {1×5 double} {1×5 double} {1×5 double} {1×5 double} {1×5 double} Columns 265 through 275 {1×5 double} {1×5 double} {1×5 double} {1×5 double} {1×5 double} {1×5 double} {1×5 double} {1×5 double} {1×5 double} {1×5 double} {1×5 double} Columns 276 through 286 {1×5 double} {1×5 double} {1×5 double} {1×5 double} {1×5 double} {1×5 double} {1×5 double} {1×5 double} {1×5 double} {1×5 double} {1×5 double} Columns 287 through 297 {1×5 double} {1×5 double} {1×5 double} {1×5 double} {1×5 double} {1×5 double} {1×5 double} {1×5 double} {1×5 double} {1×5 double} {1×5 double} Columns 298 through 308 {1×5 double} {1×5 double} {1×5 double} {1×5 double} {1×5 double} {1×5 double} {1×5 double} {1×5 double} {1×5 double} {1×5 double} {1×5 double} Columns 309 through 319 {1×5 double} {1×5 double} {1×5 double} {1×5 double} {1×5 double} {1×5 double} {1×5 double} {1×5 double} {1×5 double} {1×5 double} {1×5 double} Columns 320 through 330 {1×5 double} {1×5 double} {1×5 double} {1×5 double} {1×5 double} {1×5 double} {1×5 double} {1×5 double} {1×5 double} {1×5 double} {1×5 double} Columns 331 through 341 {1×5 double} {1×5 double} {1×5 double} {1×5 double} {1×5 double} {1×5 double} {1×5 double} {1×5 double} {1×5 double} {1×5 double} {1×5 double} Columns 342 through 352 {1×5 double} {1×5 double} {1×5 double} {1×5 double} {1×5 double} {1×5 double} {1×5 double} {1×5 double} {1×5 double} {1×5 double} {1×5 double} Columns 353 through 363 {1×5 double} {1×5 double} {1×5 double} {1×5 double} {1×5 double} {1×5 double} {1×5 double} {1×5 double} {1×5 double} {1×5 double} {1×5 double} Columns 364 through 374 {1×5 double} {1×5 double} {1×5 double} {1×5 double} {1×5 double} {1×5 double} {1×5 double} {1×5 double} {1×5 double} {1×5 double} {1×5 double} Columns 375 through 385 {1×5 double} {1×5 double} {1×5 double} {1×5 double} {1×5 double} {1×5 double} {1×5 double} {1×5 double} {1×5 double} {1×5 double} {1×5 double} Columns 386 through 396 {1×5 double} {1×5 double} {1×5 double} {1×5 double} {1×5 double} {1×5 double} {1×5 double} {1×5 double} {1×5 double} {1×5 double} {1×5 double} Columns 397 through 407 {1×5 double} {1×5 double} {1×5 double} {1×5 double} {1×5 double} {1×5 double} {1×5 double} {1×5 double} {1×5 double} {1×5 double} {1×5 double} Columns 408 through 418 {1×5 double} {1×5 double} {1×5 double} {1×5 double} {1×5 double} {1×5 double} {1×5 double} {1×5 double} {1×5 double} {1×5 double} {1×5 double} Columns 419 through 429 {1×5 double} {1×5 double} {1×5 double} {1×5 double} {1×5 double} {1×5 double} {1×5 double} {1×5 double} {1×5 double} {1×5 double} {1×5 double} Columns 430 through 440 {1×5 double} {1×5 double} {1×5 double} {1×5 double} {1×5 double} {1×5 double} {1×5 double} {1×5 double} {1×5 double} {1×5 double} {1×5 double} Columns 441 through 451 {1×5 double} {1×5 double} {1×5 double} {1×5 double} {1×5 double} {1×5 double} {1×5 double} {1×5 double} {1×5 double} {1×5 double} {1×5 double} Columns 452 through 462 {1×5 double} {1×5 double} {1×5 double} {1×5 double} {1×5 double} {1×5 double} {1×5 double} {1×5 double} {1×5 double} {1×5 double} {1×5 double} Columns 463 through 473 {1×5 double} {1×5 double} {1×5 double} {1×5 double} {1×5 double} {1×5 double} {1×5 double} {1×5 double} {1×5 double} {1×5 double} {1×5 double} Columns 474 through 484 {1×5 double} {1×5 double} {1×5 double} {1×5 double} {1×5 double} {1×5 double} {1×5 double} {1×5 double} {1×5 double} {1×5 double} {1×5 double} Columns 485 through 495 {1×5 double} {1×5 double} {1×5 double} {1×5 double} {1×5 double} {1×5 double} {1×5 double} {1×5 double} {1×5 double} {1×5 double} {1×5 double} Columns 496 through 506 {1×5 double} {1×5 double} {1×5 double} {1×5 double} {1×5 double} {1×5 double} {1×5 double} {1×5 double} {1×5 double} {1×5 double} {1×5 double} Columns 507 through 517 {1×5 double} {1×5 double} {1×5 double} {1×5 double} {1×5 double} {1×5 double} {1×5 double} {1×5 double} {1×5 double} {1×5 double} {1×5 double} Columns 518 through 528 {1×5 double} {1×5 double} {1×5 double} {1×5 double} {1×5 double} {1×5 double} {1×5 double} {1×5 double} {1×5 double} {1×5 double} {1×5 double} Columns 529 through 539 {1×5 double} {1×5 double} {1×5 double} {1×5 double} {1×5 double} {1×5 double} {1×5 double} {1×5 doubl...

Output argument "x" (and maybe others) not assigned during call to "matcat". Error in Test4 (line 3) x = matcat(row_sums,col_sums);

5   Fail
row_sums = 55; col_sums = [1 2 3 4 5 6 7 8 9 10]; x = matcat(row_sums,col_sums); assert(all(x(:)>=0)) assert(isequal(floor(x),x)) assert(isequal(sum(x,2)',row_sums)) assert(isequal(sum(x,1),col_sums))

C = 1×16955 cell array Columns 1 through 10 {1×10 double} {1×10 double} {1×10 double} {1×10 double} {1×10 double} {1×10 double} {1×10 double} {1×10 double} {1×10 double} {1×10 double} Columns 11 through 20 {1×10 double} {1×10 double} {1×10 double} {1×10 double} {1×10 double} {1×10 double} {1×10 double} {1×10 double} {1×10 double} {1×10 double} Columns 21 through 30 {1×10 double} {1×10 double} {1×10 double} {1×10 double} {1×10 double} {1×10 double} {1×10 double} {1×10 double} {1×10 double} {1×10 double} Columns 31 through 40 {1×10 double} {1×10 double} {1×10 double} {1×10 double} {1×10 double} {1×10 double} {1×10 double} {1×10 double} {1×10 double} {1×10 double} Columns 41 through 50 {1×10 double} {1×10 double} {1×10 double} {1×10 double} {1×10 double} {1×10 double} {1×10 double} {1×10 double} {1×10 double} {1×10 double} Columns 51 through 60 {1×10 double} {1×10 double} {1×10 double} {1×10 double} {1×10 double} {1×10 double} {1×10 double} {1×10 double} {1×10 double} {1×10 double} Columns 61 through 70 {1×10 double} {1×10 double} {1×10 double} {1×10 double} {1×10 double} {1×10 double} {1×10 double} {1×10 double} {1×10 double} {1×10 double} Columns 71 through 80 {1×10 double} {1×10 double} {1×10 double} {1×10 double} {1×10 double} {1×10 double} {1×10 double} {1×10 double} {1×10 double} {1×10 double} Columns 81 through 90 {1×10 double} {1×10 double} {1×10 double} {1×10 double} {1×10 double} {1×10 double} {1×10 double} {1×10 double} {1×10 double} {1×10 double} Columns 91 through 100 {1×10 double} {1×10 double} {1×10 double} {1×10 double} {1×10 double} {1×10 double} {1×10 double} {1×10 double} {1×10 double} {1×10 double} Columns 101 through 110 {1×10 double} {1×10 double} {1×10 double} {1×10 double} {1×10 double} {1×10 double} {1×10 double} {1×10 double} {1×10 double} {1×10 double} Columns 111 through 120 {1×10 double} {1×10 double} {1×10 double} {1×10 double} {1×10 double} {1×10 double} {1×10 double} {1×10 double} {1×10 double} {1×10 double} Columns 121 through 130 {1×10 double} {1×10 double} {1×10 double} {1×10 double} {1×10 double} {1×10 double} {1×10 double} {1×10 double} {1×10 double} {1×10 double} Columns 131 through 140 {1×10 double} {1×10 double} {1×10 double} {1×10 double} {1×10 double} {1×10 double} {1×10 double} {1×10 double} {1×10 double} {1×10 double} Columns 141 through 150 {1×10 double} {1×10 double} {1×10 double} {1×10 double} {1×10 double} {1×10 double} {1×10 double} {1×10 double} {1×10 double} {1×10 double} Columns 151 through 160 {1×10 double} {1×10 double} {1×10 double} {1×10 double} {1×10 double} {1×10 double} {1×10 double} {1×10 double} {1×10 double} {1×10 double} Columns 161 through 170 {1×10 double} {1×10 double} {1×10 double} {1×10 double} {1×10 double} {1×10 double} {1×10 double} {1×10 double} {1×10 double} {1×10 double} Columns 171 through 180 {1×10 double} {1×10 double} {1×10 double} {1×10 double} {1×10 double} {1×10 double} {1×10 double} {1×10 double} {1×10 double} {1×10 double} Columns 181 through 190 {1×10 double} {1×10 double} {1×10 double} {1×10 double} {1×10 double} {1×10 double} {1×10 double} {1×10 double} {1×10 double} {1×10 double} Columns 191 through 200 {1×10 double} {1×10 double} {1×10 double} {1×10 double} {1×10 double} {1×10 double} {1×10 double} {1×10 double} {1×10 double} {1×10 double} Columns 201 through 210 {1×10 double} {1×10 double} {1×10 double} {1×10 double} {1×10 double} {1×10 double} {1×10 double} {1×10 double} {1×10 double} {1×10 double} Columns 211 through 220 {1×10 double} {1×10 double} {1×10 double} {1×10 double} {1×10 double} {1×10 double} {1×10 double} {1×10 double} {1×10 double} {1×10 double} Columns 221 through 230 {1×10 double} {1×10 double} {1×10 double} {1×10 double} {1×10 double} {1×10 double} {1×10 double} {1×10 double} {1×10 double} {1×10 double} Columns 231 through 240 {1×10 double} {1×10 double} {1×10 double} {1×10 double} {1×10 double} {1×10 double} {1×10 double} {1×10 double} {1×10 double} {1×10 double} Columns 241 through 250 {1×10 double} {1×10 double} {1×10 double} {1×10 double} {1×10 double} {1×10 double} {1×10 double} {1×10 double} {1×10 double} {1×10 double} Columns 251 through 260 {1×10 double} {1×10 double} {1×10 double} {1×10 double} {1×10 double} {1×10 double} {1×10 double} {1×10 double} {1×10 double} {1×10 double} Columns 261 through 270 {1×10 double} {1×10 double} {1×10 double} {1×10 double} {1×10 double} {1×10 double} {1×10 double} {1×10 double} {1×10 double} {1×10 double} Columns 271 through 280 {1×10 double} {1×10 double} {1×10 double} {1×10 double} {1×10 double} {1×10 double} {1×10 double} {1×10 double} {1×10 double} {1×10 double} Columns 281 through 290 {1×10 double} {1×10 double} {1×10 double} {1×10 double} {1×10 double} {1×10 double} {1×10 double} {1×10 double} {1×10 double} {1×10 double} Columns 291 through 300 {1×10 double} {1×10 double} {1×10 double} {1×10 double} {1×10 double} {1×10 double} {1×10 double} {1×10 double} {1×10 double} {1×10 double} Columns 301 through 310 {1×10 double} {1×10 double} {1×10 double} {1×10 double} {1×10 double} {1×10 double} {1×10 double} {1×10 double} {1×10 double} {1×10 double} Columns 311 through 320 {1×10 double} {1×10 double} {1×10 double} {1×10 double} {1×10 double} {1×10 double} {1×10 double} {1×10 double} {1×10 double} {1×10 double} Columns 321 through 330 {1×10 double} {1×10 double} {1×10 double} {1×10 double} {1×10 double} {1×10 double} {1×10 double} {1×10 double} {1×10 double} {1×10 double} Columns 331 through 340 {1×10 double} {1×10 double} {1×10 double} {1×10 double} {1×10 double} {1×10 double} {1×10 double} {1×10 double} {1×10 double} {1×10 double} Columns 341 through 350 {1×10 double} {1×10 double} {1×10 double} {1×10 double} {1×10 double} {1×10 double} {1×10 double} {1×10 double} {1×10 double} {1×10 double} Columns 351 through 360 {1×10 double} {1×10 double} {1×10 double} {1×10 double} {1×10 double} {1×10 double} {1×10 double} {1×10 double} {1×10 double} {1×10 double} Columns 361 through 370 {1×10 double} {1×10 double} {1×10 double} {1×10 double} {1×10 double} {1×10 double} {1×10 double} {1×10 double} {1×10 double} {1×10 double} Columns 371 through 380 {1×10 double} {1×10 double} {1×10 double} {1×10 double} {1×10 double} {1×10 double} {1×10 double} {1×10 double} {1×10 double} {1×10 double} Columns 381 through 390 {1×10 double} {1×10 double} {1×10 double} {1×10 double} {1×10 double} {1×10 double} {1×10 double} {1×10 double} {1×10 double} {1×10 double} Columns 391 through 400 {1×10 double} {1×10 double} {1×10 double} {1×10 double} {1×10 double} {1×10 double} {1×10 double} {1×10 double} {1×10 double} {1×10 double} Columns 401 through 410 {1×10 double} {1×10 double} {1×10 double} {1×10 double} {1×10 double} {1×10 double} {1×10 double} {1×10 double} {1×10 double} {1×10 double} Columns 411 through 420 {1×10 double} {1×10 double} {1×10 double} {1×10 double} {1×10 double} {1×10 double} {1×10 double} {1×10 double} {1×10 double} {1×10 double} Columns 421 through 430 {1×10 double} {1×10 double} {1×10 double} {1×10 double} {1×10 double} {1×10 double} {1×10 double} {1×10 double} {1×10 double} {1×10 double} Columns 431 through 440 {1×10 double} {1×10 double} {1×10 double} {1×10 double} {1×10 double} {1×10 double} {1×10 double} {1×10 double} {1×10 double} {1×10 double} Columns 441 through 450 {1×10 double} {1×10 double} {1×10 double} {1×10 double} {1×10 double} {1×10 double} {1×10 double} {1×10 double} {1×10 double} {1×10 double} Columns 451 through 460 {1×10 double} {1×10 double} {1×10 double} {1×10 double} {1×10 double} {1×10 double} {1×10 double} {1×10 double} {1×10 double} {1×10 double} Columns 461 through 470 {1×10 double} {1×10 double} {1×10 double} {1×10 double} {1×10 double} {1×10 double} {1×10 double} {1×10 double} {1×10 double} {1×10 double} Columns 471 through 480 {1×10 double} {1×10 double} {1×10 double} {1×10 double} {1×10 double} {1×10 double} {1×10 double} {1×10 double} {1×10 double} {1×10 double} Columns 481 through 490 {1×10 double} {1×10 double} {1×10 double} {1×10 double} {1×10 double} {1×10 double} {1×10 double} {1×10 double} {1×10 double} {1×10 double} Columns 491 through 500 {1×10 double} {1×10 double} {1×10 double} {1×10 double} {1×10 double} {1×10 double} {1×10 double} {1×10 double} {1×10 double} {1×10 double} Columns 501 through 510 {1×10 double...

Output argument "x" (and maybe others) not assigned during call to "matcat". Error in Test5 (line 3) x = matcat(row_sums,col_sums);