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

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.

Example:

   input: 3
  output: [1 1]

Tags

Problem Group

Solution Statistics

46 correct solutions 29 incorrect solutions
Last solution submitted on Jul 10, 2014