Write a user-defined MATLAB function that converts integers written in decimal form to binary form. Name the

Question:

Write a user-defined MATLAB function that converts integers written in decimal form to binary form. Name the function b=Bina (d), where the input argument d is the integer to be converted and the output argument b is a vector with 1 s and Os that represents the number in binary form. The largest number that could be converted with the function should be a binary number with 16 1 s. If a larger number is entered as d, the function should display an error message. Use the function to convert the following numbers:
(a) 100
(b) 1002
(c) 52,601
(d) 200,090
Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Related Book For  book-img-for-question
Question Posted: