MATLAB GURU FETEX 2014 (Q.2 with Solution Codes)

Posted on at


Q2. CALCULATING PERCENTILE:

A percentile score tells us what percent of other scores are less than the data point we are investigating. 

  Consider a group of 6 students had the following scores on their most recent test: [42, 67, 46, 52, and 61]. Then their percentile and rank are as shown. 

Write a MATALAB program that takes scores of any number of students in the form of vector and calculates their rank based upon percentile (Like in example Table!) Example for Testing You code: Input and output should look like this. 

Solution:

 

Authored by : Shahid Ali Murtza

 



About the author

160