Opposition leader Anwar Ibrahim said he underwent a "degrading" physical examination after being arrested in 2008 on sodomy charges.