Question: Please consider Part 4 only (Part 2 is only for reference); Part 2 (5 marks): In many applications it is useful to normalize a vector


Please consider Part 4 only (Part 2 is only for reference);
Part 2 (5 marks): In many applications it is useful to normalize a vector of values stored in an array. The normalization technique we will use, sets the minimum value in the vector to 0, the maximum to 1 and scales all the other values accordingly. If the original vector is x. each element of the scaled vector x' is defined by the following formula X' = -Xmin Xmax Xmin where Xmin is the smallest value in x and Xmax is the largest value in x. For example if the original vector is 2.5, 7.2, 8.4, -3.2, 9.2, -1.9} The normalized vector is {0.4597, 0.8387, 0.9355, 0.0000, 1.0000, 0.1048) Part 4 (5 marks): Write a MATLAB function definition that takes a vector as its argument and returns a normalized vector using the normalization method of Part 2. Your function definition must NOT use any explicit loops (i.e. for or while commands)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
