change ex1_multi.m to predict