Magnetic field data of ship has three-component,and traditional weighted fuzzy clustering algorithm(FCA) can’t deal with the three-component data. We improve the traditional FCA by changing the objective function and added weights calculation of three-component of magnetic field in the function.Give the equation to compute the weights of three-component.Put forward new steps for improved algorithm.Use ships’ data to test the improved algorithm and giving the conclusion.