Discover MakerZone

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

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

New to MATLAB?

Problem 1861. Binary

Created by Ricardo Sousa

Given a positive, integer n, create a function that returns the respective binary number in the form of a vector.


   input: 3
  output: [1 1]


Problem Group

Solution Statistics

69 correct solutions 41 incorrect solutions
Last solution submitted on Oct 06, 2015