MATLAB: How can i change performFcn of neural network training

neural network toolbox 8.0performfcnr2012btraintrainparam

When i try it the obvious way the change is ignored,
>> net = feedforwardnet(20);
>> net.performFcn='msereg';
>> net.performFcn
ans =
mse
Also i've noticed that changing parameters in net.trainParam is completely ignored in latter call of train function
>> net = feedforwardnet(20);
>> matlabpool open
>> net.trainParam.epochs = 130;
>> net.trainParam
ans =
(...)
Maximum Epochs epochs: 130
>> net=train(net,WE2,WY2, 'useParallel','yes','useGPU','yes');
NOTICE: Jacobian training not supported on GPU. Training function set to TRAINSCG.
Lab 1:
Training with TRAINSCG.
Epoch 0/1000, (...)
As u can see the epoch limit didn't actually change. What am I doing wrong, and how to do it properly?
*im using matlab r2012b

Best Answer

>> net = feedforwardnet(20);
>> net.performFcn='msereg';
>> net.performFcn
ans =
msereg
1. Don't know what caused your error.
2. I cannot help with other problem
Sorry,
Greg