Question: Use MATLAB Let's consider the 8-bit floating point number defined in Lab 3: - Bit 1 represents the sign of the number - Bit 2

Use MATLAB

Use MATLAB Let's consider the 8-bit floating point number defined in Lab3: - Bit 1 represents the sign of the number - Bit2 represents the exponent sign - Bits 3 and 4 represent the

Let's consider the 8-bit floating point number defined in Lab 3: - Bit 1 represents the sign of the number - Bit 2 represents the exponent sign - Bits 3 and 4 represent the exponent - Bits 5,6,7,8 represent the mantissa Such a number could be defined as vector with eight elements. For example: binaryNum =[01101010]; - Bit 1=0 represents a positive number - Bit 2 = 1 represents a negative exponent - Bits 3 and 4=10 represent an exponent: (121)+(020)=2 - Bits 58=1010 represents the mantissa: (121)+(021)+(123)+(024)=0.625 The resulting number is FL(01101010)=(+)0.62523=0.15625 Write a function called my8BitNumber that converts 8-bit floating point numbers into their base-10 equivalents. my8BitNumber should have the following attributes: - One input argument consisting of an eight-element array of ones and zeros - One output argument consisting of a scalar base-10 number Function ? Save CReset MATLAB Documentation Code to call your function

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!