Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribedimage text in transcribedimage text in transcribed

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

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

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

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

Get Started

Recommended Textbook for

Oracle 12c SQL

Authors: Joan Casteel

3rd edition

1305251032, 978-1305251038

More Books

Students also viewed these Databases questions

Question

summary related to the Norming stage of team development.

Answered: 1 week ago