roberttetreault6634 roberttetreault6634
  • 19-07-2019
  • Computers and Technology
contestada

Write matlab programs to convert the following to binarynumbers.
a) 23
b)87
c) 378
d)2388

Respuesta :

ExieFansler ExieFansler
  • 29-07-2019

Answer:

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.

Answer Link

Otras preguntas

The mass of the Earth is 81 times the mass of the Moon, and the radius of the Earth is 3.7 times of the Moon. If the acceleration of free fall on the Earth is
weaknesses as a teacher​
1. What function does this input-output table show? alive. A tree's size is a function of its size(_ s(_)
what is 1/3 multiply by 5​
put them in order from least to greatest: 7.92 8.061 8.1 7.999 7.94 8.087
What happens to a ray of light passing through the center of a lens?
Find the domain and the range of the relation shown on the graph to the right. Use the vertical line test to determine whether the graph is the graph of a funct
What’s the correct answer for this?
To avoid a service fee, your checking account balance must be at least $500 at the end of each month. Your current balance is $548,92. You use your debit card
What is the correct answer for this?