fixed transient stability in matlab

attached the results