you can use George Ever's toolbook for trainng neural network using PSO:
http://www.georgeevers.org/pso_research_toolbox.htm
and download tricia sample code:
http://www.mathworks.com/matlabcentral/fileexchange/29565-neural-network-add-in-for-psort
hope it helps, :)