Problem 885. Create logical matrix with a specific row and column sums
Solution Stats
Problem Comments
-
2 Comments
Any clue? Does this problem require great mathematics abilities ?
Not really, imagine in the simplest case that we could use the diagonals (ignoring this constraint), what the solution would look like? A chessboard pattern would solve it, wouldn't it? Now, how can we work around the constraint?
Solution Comments
-
1 Comment
test suite does not have function 'intlinprog' in directory? otherwise works for all case on my matlab
-
1 Comment
my code works on my matlab, why doesn't it pass the test suite?
-
3 Comments
I never knew about gallery. Thanks!
could you please let me know which one of the Gallery matrixes have you used?
@Payam Morsali
its the circulant matrix
Problem Recent Solvers285
Suggested Problems
-
Renaming a field in a structure array
1196 Solvers
-
4249 Solvers
-
Get the length of a given vector
8134 Solvers
-
Getting the indices from a matrix
575 Solvers
-
Get the elements of diagonal and antidiagonal for any m-by-n matrix
442 Solvers
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!