Creating a Closed loop transfer function of a model

조회 수: 5 (최근 30일)
Jacob Huhtala
Jacob Huhtala 2022년 10월 20일
댓글: Jacob Huhtala 2022년 10월 20일
I am attempting to make a closed loop transfer function of the picture below (please dont make fun of my amazing microsoft paint skills). The code I have is posted below I am not sure what I am doing wrong exactly. I think I have both the forward and return sections correct, thank you for any help in advance!
G1 = tf([1 1],[1 3 14]);
G2 = tf([5],[1 7 2]);
h = 15;
loop1 = feedback(G1,h);
loop2 = feedback(G1*G2,1);
gcl = feedback(G1*G2,h)
gcl = 5 s + 5 ----------------------------------- s^4 + 10 s^3 + 37 s^2 + 179 s + 103 Continuous-time transfer function.

채택된 답변

Paul
Paul 2022년 10월 20일
편집: Paul 2022년 10월 20일
Hi Jacob,
Perhaps a clue is that the code doesn't use loop1 after it's computed. Once you have loop1, how does it relate to G2 and the outer feedback loop?
  댓글 수: 2
Jacob Huhtala
Jacob Huhtala 2022년 10월 20일
So you think that the answer would just be the feedback loop of G1&h?
Jacob Huhtala
Jacob Huhtala 2022년 10월 20일
OHHH I understand now you are right, I can use loop1 to create a new feedback loop that involves G2! I get it, thank you so much!

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Loops and Conditional Statements에 대해 자세히 알아보기

제품


릴리스

R2018a

Community Treasure Hunt

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

Start Hunting!

Translated by