subject

Write a function called normalizeGrades that receives a row array of test scores of arbitrary length and positive values, and produces two outputs: A row array array containing the grades normalized to a linear scale from 0 to 100 (i. e. grades are normalized if the maximum grade equals 100). Hint: Use the internal function max. The average of the normalized grades. Hint: Use the internal function mean. Restriction: Loops may not be used. For example, following code: scores=[90, 45, 76, 21, 85, 97, 91, 84, 79, 67]; [normScores, average]=normalizeGrades(scores) produces: normScores=[92.78, 46.39, 78.35, 21.65, 87.63, 100, 93.81, 86.6, 81.44, 69.07] average= 75.77 Function Save Reset MATLAB DocumentationOpens in new tab function [ output_args ] = untitled( input_args ) % Takes a row array of test scores (arbitrary length, and positive values) % and produces two outputs: % grades: A row array grades containing normalized grades scores on a linear scale from 0 to 100. % average: A numeric number equaling the average of the normalized scores. % end 1 2 3 4 5 6 7 8 9 Code to call your function Reset % test dataset, use randi to generate others scores=[90, 45, 76, 21, 85, 97, 91, 84, 79, 67]; [ normScores, average ] = normalizeGrades( scores ) 1 2 3 Run Function

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 21.06.2019 17:00
Ineed a good science fair name i’m doing a homemade water filter and i have no idea what the title should be plz
Answers: 1
question
Computers and Technology, 21.06.2019 18:30
Given the following code: if (n == 2) { k -= 2; } else if (n == 3) { k -= 3; } can be rewritten as: if (< condition > ) { < assignment statement > ; } assume that evaluating < condition > does not change the values stored in n and k. which of the following could be used as < assignment statement > ? k -= n; k -= 1; k -= 2; k += n; k = n - k;
Answers: 2
question
Computers and Technology, 22.06.2019 07:00
You will be given two character arrays of the same size, one will contain a number of ships. ships will move around the character array based on which way they are facing and the route they are on. routes are given in the other array. the route consists of '-' and '|' for straight paths, '\' and '/' for curves, and '+' for intersections. there are ships on these routes. ships always face a direction, '^' for up, '> ' for right, 'v' for down, and '< ' for left. any time the ships hit a '\' or a '/' it will turn as you would expect a ship to turn (e.g. a '^' that moves into a '/' will turn right). at an intersection, ships will always continue straight through. all ships move at the same speed, ships take turns moving and all ships move during one 'tick'. the one in the most top left goes first, followed by those to its right, then the ones in the next row. it iterates along the rows and then down the columns. each ship moves one space on its turn moving along the route. your function needs to return the position of the first collision between two ships and the number of ticks before the crash occurred.
Answers: 2
question
Computers and Technology, 23.06.2019 00:30
If joey was single and his taxable income was $9,500, how much would he pay in taxes each year?
Answers: 1
You know the right answer?
Write a function called normalizeGrades that receives a row array of test scores of arbitrary length...
Questions
Questions on the website: 13722361