Program to convert decimal to binary and vice versa

Hello Matlab community,
I need to write a subroutine to convert a decimal integer to a binary number and vice versa.
Thanks in advance.

Community Treasure Hunt

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

Start Hunting!

Translated by