Dear all
pml ,upml and cpml all of them absorbing boundry condition u can implement any of them and the eror will not be large but each of them tequneques used in absorbing so if u want any code for matlab in cpml u can find it in dr atef elsherbin book that book will help u very much about cpml.
best regard
eng ahmed