I know the procedure of transforming one distribution to another by the use of CDF. However, I would like to know if there is existing function in Matlab which can perform this task? 

My another related question is that I computed CDF of my empirical using `ecdf()` function in Matlab for a distribution with `10,000` values. However, the output that I get from it contains only `9967` values. How can I get total `10,000` values for my CDF? Thanks.