Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

write a live script that contains sample data that looks like this: testScores 1 = [ 9 0 1 3 4 5 7 6 2

write a live script that contains sample data that looks like this:
testScores1=[90134576218597918479677672899555508891];
testScores2=[90-134576218597918479677672899555508891];
testScores3=[901345762185979184796776728910555508891W]w;
The script will call a local function ScaleGrades that takes as input a
vector of test scores (in the range 0 to 100) and linearly scales them so that the
maximum score in the vector is 100. The function returns the vector of scaled scores.
A variable called scaledTestScores is used in the script to accept the vector that is
returned by your function.
To solve the problem you may use any or all of the following built-in MATLAB functions:
length, min, max, and sort. You can use the help command to see how these work.
Run the script with each of the three sets of test scores. Note that testScores2 and
testScores3 have exceptional values (negative or greater than 100). Decide how your
script and function should handle these cases and include comments that explain the
choice you have made

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

Sql All In One For Dummies 7 Books In One

Authors: Allen G Taylor ,Richard Blum

4th Edition

1394242298, 978-1394242290

More Books

Students also viewed these Databases questions

Question

2. Value-oriented information and

Answered: 1 week ago