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 1488. Generate binary combinations for a given number of bit(s)

Created by Suman Saha

Generate the binary combination as in the example below.

Example: If you are given:


The answer will be:

 0 0
 0 1
 1 0
 1 1

The answer will appear in double class.


Problem Group

Solution Statistics

37 correct solutions 41 incorrect solutions
Last solution submitted on Apr 14, 2016

Problem Comments

Solution Comments