REF PS SELECTION MATLAB(STamPS)

Hi everyone,
I don’t know if anybody has experienced this error or is experiencing this error.

Array indices must be positive integers or logical values.

Error in ps_plot (line 1963)
** maxph=phsort(round(length(phsort)*.999));**