Binary - MATLAB Cody - MATLAB Central

Problem 1861. Binary

Difficulty:Rate

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]

Solution Stats

56.13% Correct | 43.87% Incorrect
Last Solution submitted on Apr 22, 2025

Problem Comments

Solution Comments

Show comments
Registration Now Open for MathWorks AUTOMOTIVE CONFERENCE 2025
...
Hello Community, We're excited to announce that registration is now open for the...

Problem Recent Solvers211

Suggested Problems

Problem Tags

Community Treasure Hunt

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

Start Hunting!
Go to top of page