Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi test

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

MATLAB Academy

New to MATLAB?

Learn MATLAB today!

Problem 1700. Solve the picross! (Easy)

Created by Benoit Charles

Solve the picross!

http://en.wikipedia.org/wiki/Nonogram

The arguments (horz and vert) are cells containing the clues, e.g:

horz = { 2, [1, 1], [] }; vert = { 2, 1, 1 };

means

You have to return the completed picross, a logical or double matrix with a 0 for a white case and a 1 for a black case. If we solve the previous example:

So, the output argument should be:

picross = [ 1 1 0 ; 1 0 1 ; 0 0 0 ];

Have fun!

See also: http://www.mathworks.fr/matlabcentral/cody/problems/1701-solve-the-picross-hard

Problem Group

Solution Statistics

3 correct solutions 3 incorrect solutions
Last solution submitted on Aug 18, 2014

Problem Comments