I am trying to write following inner current control loop structure in MATLAB. Both these diagrams are inter related and using these diagrams I made a following code, my aim in this code is to minimize id*-id, i am doing this by using ITEA. plz help me in verifying this code. the diagram is in image link below. i have implemented that link in code below.
`