matlab code for simulating power system dynamics

The power system model consist of generators and machine only loads.