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]
MATLAB and Simulink resources for Arduino, LEGO, and Raspberry PiLearn more
Opportunities for recent engineering grads.Apply Today
New to MATLAB?Learn MATLAB today!
Play games and win prizes!Learn more