from Orthogonal Least Squares Algorithm for RBF Networks by Anshuman Gupta
The code implements the OLS algorithm for func approx.

kernel(dis, B)
function phi = kernel(dis, B)
t=(dis/B);
phi=exp(-(t^2));

Contact us at files@mathworks.com