ctp matlab framework