Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Could you help me create a code in matlab for these 3 questions? Also we are not allowed to use dec2bin or dec2hex. We have

Could you help me create a code in matlab for these 3 questions? Also we are not allowed to use dec2bin or dec2hex. We have to generate our own algorithm.

image text in transcribed

1) Create a 12-bit signed Binary system. Use MATLAB to implement your algorithm in a way that it convert a given decimal x into your system. o It should display the converted x alongside a proper massage on the command window Example Output: The number x-123 is 100001101111 in a 12 bit singed binary system o Calculate the range of numbers that can be stored using your developed system. Your program should display the range of numbers at the command window Example Output: Possible range in this system is -100 100] 2) Create a 12-bit signed hexadecimal system. Use MATLAB to implement your algorithm in a way that it convert a given decimal x into your system. (Note: A-10, B-11, C-12, D-13, E-14, F-15) o It should display the converted x alongside a proper massage on the command window Example Output: The number x--123 is 10000000007B in a 12 bit singed hexdecimal system o Calculate the range of numbers that can be stored using your developed system. Your program should display the range of numbers at the command window. Example Output: Possible range in this system is I-100 100] 3) Create a binary hypothetical floating-point number set fora machine that stores information using 7-bit words as follows: The first bit for the sign of the number . The next bit for the sign of the exponent . The next two for the magnitude of the exponent . The last three for the magnitude of the mantissa e Use MATLAB to implement your algorithm in a way that it convert a given decimal x into your designed system. o It should display the converted x alongside a proper massage on the command window Example Output: The number x 102.3539889 is 1000011 in our 7 bit floating system. (Note: I just wrote a dummy output since I haven't developed the system)) o Calculate the range of numbers that can be stored using your developed system. Your program should display the range of numbers at the command window Example Output: Possible range in this system is I-100 100] For Submission you will need to upload a single m-file. Your file should have proper commendation and be clearly segmented to three sections for questions 1,2 and 3

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access with AI-Powered Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions

Question

What are the role of supervisors ?

Answered: 1 week ago