Matlab coding correction for Electrical synchronous generator assignment

This question has been answered.

Get Answer