Dc Shunt Generator In Matlab