Numerical treatment of functions with endpoint singularities via Chebyshev technology combined with conformal mappings. Matlab implementation.