make the cnn_tain.m be compatible with windows

Add one sentence to make the file  "cnn_tain.m"  be compatible with windows。
If there is no "modelPath(strfind(modelPath,'\')) = '/';", matlab will say a error about '\c' .