Gradient correction parameter identification method (example and matlab program)