MATLAB: Stats Toolbox Syntax Inconsistencies

Statistics and Machine Learning Toolbox

There seems to be an inconcistency in the conventions used by some functions in the Statistics Toolbox.
Particularly, in regards to the trimmed mean (TRIMMEAN), quantile (QUANTILE) and percentile (PRCTILE), and functions. In the case of the first two, the percentages are represented on a scale of [0, 1], while on the latter function, percentages are represented on a scale of [0,100]. This variation can very easily lead to unintended, and non-catchable errors in my code.
It would be helpful to have a single consistent convention in future releases.

Best Answer

These are industry standards. Percentile and quantile are pretty much equivalent, and only differ in the way they express statistics they refer to. 
For instance, the median of a distribution is the 0.5 Quantile, and is the 50% percentile. Likewise, the 1-quantile is the 100% percentile.
In summary, for the same data sample, the quantile at the value Q is the same as the percentile at the value P = 100*Q.