Answered step by step
Verified Expert Solution
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:
testScores;
testScores;
testScoresWw;
The script will call a local function ScaleGrades that takes as input a
vector of test scores in the range to and linearly scales them so that the
maximum score in the vector is 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 builtin 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 testScores and
testScores have exceptional values negative or greater than 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
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