Update predict.m