Prosecutors said a sexual assault exam found evidence that linked the defendant to the crime.