I'm trying to use some tools that were designed to be integrated into Neural Network Toolbox 6.0.4 (the version which came with R2010a) with Matlab 2016a. I'm getting errors as a script that came with the tool defines two matrices P and T and then calls
net = newff(P,T,2);
net.trainFcn = 'trainpso';
(newff became "obsolete" with R2010b. trainpso is a training function that comes in this add-in, designed to be called in the same manner that other train functions in NN Toolbox 6.0.4 are called.)
I run this script and it stops with an error at the last line I quoted. After clicking all the citations of code lines in the error report, I found that subasgn.m, part of the current NN Toolbox which carries out commands such as that last line, is now designed to ask [string].m - in this case trainpso.m - what the default settings are. However, that request was not made with that terminology in version 6.0.4, so it results in an error.
How might I edit the script so as to command Matlab to run it in the NN Toolbox 6.0.4 manner?