Dear T. Song, Next week we will update the website with updated tutorials including an example on definetrial.m. I think this will help you along. Ole