This paper presents a novel methodology for designing an optimal fuzzy logic system. The applied approach provides a way of matching the input-output pairs using a fuzzy basis function to find the optimal location of the fuzzy rules. This approach is able to provide and teach numerical information as well as linguistic information. This technique may produce a simple and a well-performing system because it selects the most significant fuzzy basis functions to minimize an objective function in the output error for the fuzzy rules. The fuzzy basis function is that a linguistic fuzzy IF-THEN rule. The fuzzy basis function provides both numerical information and linguistic information .The proposed scheme is applied to a nonlinear magnetic system.