Question: EXERCISE Write a MATLAB function named decTObin that implement ( design , write, debug ) the algorithm of decimal to Binary. 5 8 Start Input

EXERCISE
Write a MATLAB function named
decTObin that implement (design,
write, debug) the algorithm of decimal
to Binary.
58
Start
Input (N)10
i =0
Divide N by 2 to get
quotient Q & remainder R
ai = R
Is Q =0?
n = i
(N)10=(an
...a0
)2
STOP

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!