Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribed

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

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

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

Recommended Textbook for

Oracle Database Foundations Technology Fundamentals For IT Success

Authors: Bob Bryla

1st Edition

0782143725, 9780782143720

More Books

Students also viewed these Databases questions

Question

What are the fundamental characteristics of Wernickes aphasia?

Answered: 1 week ago