Answered step by step
Verified Expert Solution
Question
1 Approved Answer
1. In lecture we defined our own 8-bit floating-point number definition with the following attributes: First bit represents the sign of the number .Bits 2-4
1. In lecture we defined our own 8-bit floating-point number definition with the following attributes: First bit represents the sign of the number .Bits 2-4 represent the signed exponent Bits 5-8 represent the mantissa Write a MATLAB function called my8BitNumber.m that takes a string representation of an 8-bit floating-point number as an input argument and returns the base-10 equivalent. a. e.g. >>inputStr'01101010 (Hint: use the st r2num function) A "skeleton code" outline of your function can be downloaded from Canvas. b. Test your code with the following floating-point numbers. Verify the results by hand: 01101010 11101010 01101100 00101100
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started