Feedback Command in Matlab

1 view (last 30 days)
Harry Efstratiou
Harry Efstratiou on 15 Jan 2021
Answered: Dongyue on 17 Nov 2022
Hi there! I would like to ask something about the command feedback in Matlab, I searched a lot in documentation that was really helpfull but I am not sure if I am correct.
I trying to find the responce of the the following plants.
As you can see, the actuator has 1 input and gives two outputs. The airframe has 1 inqut and gives two utputs.
Also, I have 1 transfer function for Actuator and 2 for the Airframe.
First I set the Kq equals a number:
In order to close the loop, I used the command feedback as: Closed_Loop=feedback(Kq*Plant_Actuator*Plant_Airframe,1,1,2,-1)
1 in second position is because there is no in the loop that I connect. I would like to ask if you think that is correct?
Thank you in advance!!

Answers (1)

Dongyue
Dongyue on 17 Nov 2022
Hi Harry,
I think what you are doing is correct. Here's my explaination for each argument:
1. Kq, Actuator, Airframe and Sensors in sequence as a subsystem sys1
2. 1 will be negtive control system
3. one input as feedin
4. three outputs and the second one will be feedout
5. the sign parameter is optional, cuz the default value for negative feedback system is -1
Best,
Dongyue

Categories

Find more on Programming in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!