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 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

76 correct solutions 44 incorrect solutions
Last solution submitted on Jul 21, 2016