MATLAB: Radial Basis Network with ‘purelin’

matlab newrb purelin

Hi,
I'm trying to create a radial basis network changing the transfer function from 'radbas' to 'purelin'.
I'm feeling pretty lost with the matlab documentation. For now, the only thing a found out was that I had to change net.layers{1}.transferFcn = 'purelin';
When I train the network, the error is almost 0, but when I call sim with the same data, the result is completely different.
Any thoughts on what I'm doing wrong? Do I have to change anything else?
Thanks!

Best Answer

If you change the hidden layer transfer to function purelin, the net is just a linear model and can be replaced by the backslash operation.