function [percentileValue] = myPerc(myArray, percValue)

sortedArray = sort(myArray);
arraySize = max(size(myArray));

percIndex = floor(arraySize * (percValue/100));

percentileValue = sortedArray(percIndex);

end