The second part coded by Matlab is responsible for calculating parameters under the transient stability of power system.