You can easily find implementations of ANN's and FS's (and ANFIS's) in MATLAB out there, but I'd suggest you to use the available toolboxes. You will definitely experience complications with manual implementation. BP, for example, is notoriously tedious to implement.