You do not show your code attempt.
Example 1 at http://www.mathworks.com/help/matlab/ref/pdepe.html does not refer to pdexic : it refers to pdex1ic, the code of which is given there. Likewise the second example refers to pdex4ic, the code of which is given there.
