I want to synchronize to generator. And I want to simulate using MATLAB. But I cannot understand how to do that. Because to do that I need equation's of voltage, phase and frequency. But I could not find. Please help me with that. And also I want to simulate those equation using MATLAB. is there any software which is better than MATLAB. If I have to use MATLAB, then please help me with the MATLAB code. Please.