Fixed ecos_bb for matlab