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.
`
The standard way to connect a block diagram is to use append/connect. Your system actually is
.
To connect the output, we need the additional block 7 (we can not connect the system output to the input of some block, only to the output):
So, the code can look like this:
Note that you can't use name-based and index-based connections at one time.