Updated predict.m

Hi I have updated predict.m

Hope it is useful to you.