Write a matlab script that when given a vector of numbers


You need to implement these questions in MATLAB.

Question 1: Write a MATLAB script that, when given a vector of numbers, nums, creates a vector newNums containing every other element of the original vector, starting with the first element. For example, nums = [6 3 56 7 8 9 445 6 7 437 357 5 4 3] newNums should be [6 56 8 445 7 357 4]. 

Use the for loop instead and Do not use any MATLAB functions except input() and length().

Question 2: You are given a vector of test scores and wish to normalize these scores by computing a new vector, normTests, which will contain the test scores on linear scale from 0 to 100. A zero still corresponds to a zero, and the highest test score will correspond to 100.

For example, tests = [90 45 76 21 85 97 91 84 79 67 76 72 89 95 55];

normTests should be [92.78 46.39 78.35 21.65 87.63 100 93.81 86.6 ... 81.44 69.07 78.35 74.23 91.75 97.94 56.7];

Do not use any MATLAB functions except length() and input(). Calculate the normalized scores by dividing each score by the highest score. You have to satisfy the requirements specific in the instruction.

 

Request for Solution File

Ask an Expert for Answer!!
MATLAB Programming: Write a matlab script that when given a vector of numbers
Reference No:- TGS0954844

Expected delivery within 24 Hours