Update cnntrain.m

Opts are inside net, y is transposed