Ask Question

Write matlab programs to convert the following to binarynumbers.

a) 23

b) 87

c) 378

d) 2388

+2
Answers (1)
  1. 15 March, 22:54
    0
    decimal_no = 23;

    binary_no = dec2bin (decimal_no);

    matlab answer=10111 / *it is a string in matlab*/

    now you just have to change the values of decimal_no

    On putting 87

    the answer is 1010111

    On putting 378

    the answer is 101111010.

    On putting 2388

    the answer is 100101010100.

    Explanation:

    We have used the inbuilt function in matlab dec2bin (decimal Number) it returns the binary number as a string.
Know the Answer?
Not Sure About the Answer?
Find an answer to your question 👍 “Write matlab programs to convert the following to binarynumbers. a) 23 b) 87 c) 378 d) 2388 ...” in 📗 Computers & Technology if the answers seem to be not correct or there’s no answer. Try a smart search to find answers to similar questions.
Search for Other Answers