Generate the binary combination as in the example below.

Example: If you are given:

 bin_comb(2)

The answer will be:

 0 0
 0 1
 1 0
 1 1

The answer will appear in double class.

Solution Stats

223 Solutions

95 Solvers

Last Solution submitted on Nov 23, 2025

Last 200 Solutions

Problem Comments

Solution Comments

Show comments
Loading...

Problem Recent Solvers95

Suggested Problems

More from this Author16

Problem Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!