you must programming in m-file.ANFIS based on fuzzy infrence system.it is possible to convert fuzzy logic architecture to a neural network،and optimize parameters with neural network.ANFIS has two mode: off line and on-line learning .On-line learning is important in system with changing characteristics .I've been working on this issue.
This paper can help: ANFIS : Adaptive-Network-Based Fuzzy Inference System