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?
test suite does not have function 'intlinprog' in directory? otherwise works for all case on my matlab
my code works on my matlab, why doesn't it pass the test suite?
I never knew about gallery. Thanks!
could you please let me know which one of the Gallery matrixes have you used?
its the circulant matrix
Make an awesome ramp for a tiny motorcycle stuntman
Generate a vector like 1,2,2,3,3,3,4,4,4,4
Make a 1 hot vector
Create an index-powered vector
Number of Even Elements in Fibonacci Sequence
Find the treasures in MATLAB Central and discover how the community can help you!
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Contact your local office