Ask Question
14 July, 23:35

Write matlab programs to convert the following to binarynumbers.

a) 23

b) 87

c) 378

d) 2388

+5
Answers (1)
  1. 15 July, 03:09
    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?
Get 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 there is no answer or all answers are wrong, use a search bar and try to find the answer among similar questions.
Search for Other Answers