I want to write a Matlab function that will convert a decimal number into a binary number.
Show older comments
Hi,
I am struggling to write a Matlab function that will convert a decimal number into a binary number with variables type double.
The function should also work for non-integer numbers. dec2bin doesn't work since it is only for integers.
I would be really happy if someone can help me with this! Thanks!
Accepted Answer
More Answers (1)
Walter Roberson
on 26 Oct 2017
Edited: Walter Roberson
on 26 Oct 2017
0 votes
Categories
Find more on MATLAB in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!