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

Help ASAP please !!!!!!!
Hey! Whoever answered or commented my last question it got blocked on my computer for some reason so come to this question. <3
someone please answer my questions i'm about to fail
(v) Which of the following isresponsible for wearing out of bicycletires?(a) Muscular force(b) Magnetic force(c) Frictional force(d) Electrostatic force​
Match each vocabulary word or words to the correct sentence. 1. Start the car. 2. Go slowly. 3. Replace the brakes. 4. Be careful. a. Lucía, ten cuidado c
The LCD for 17 and 1/2 is 07 08 15 56
What time can a sentence fragment be useful?
Reed has made 78 of 90 attempted free throws last season. How many consecutive free throws must he make to bring his free throw percentage to 90%?
Hellooo is this true or false? Ill give brainliest if its right
Can you get accurate information from social media?