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

59 correct solutions 34 incorrect solutions
Last solution submitted on Dec 03, 2014