Develop a matlab script file to calculate the practical singlephase transformer parameters. The program should ask the user toprovide the following individually:
S_rated
V1_rated
V2_rated
With secondary shorted
P1
V1
With primary open
P2
I2
The program should calculate
Req
Xeq
Zeq
Gc
Ym
Bm
Make sure your code will pronmpt a message like: “Enter the realpower at the primary winding when the secondary winding is shorted,P1=). Do the same for all parameters S, V1_rated, V2_rated, P1,V1,P2, I2
The program should return the outputs the form: “the shuntinductance susceptance, Bm=”,
do the same for all outputs.