getpstars.m 327 B

1234567891011121314151617
  1. function [ pstars ] = getpstars( pvalue )
  2. % (C) Demetrio Ferro demetrio.ferro@upf.edu
  3. % Creative Commons
  4. % Attribution-NonCommercial-ShareAlike 4.0
  5. % International Public License
  6. if pvalue <0.001
  7. pstars=' ***';
  8. elseif pvalue<0.01
  9. pstars=' ** ';
  10. elseif pvalue<0.05
  11. pstars=' * ';
  12. else
  13. pstars=' - ';
  14. end
  15. end