Create trainNetwork.m