Understanding Positive Feedback in MATLAB

Click For Summary
SUMMARY

The discussion centers on the discrepancies observed when calculating a positive feedback closed-loop system in MATLAB using the feedback function. The user defined an open-loop transfer function A = 1 / (S + 1) and a feedback path B = S / (2S + 1). Manual calculations yield a closed-loop transfer function of (2s^2 + 3s + 1) / (2s^3 + 4s^2 + 3s + 1), while MATLAB's feedback function produces (2s + 1) / (2s^2 + 2s + 1). The user later recognized that the issue stemmed from the application of the feedback function rather than a bug in MATLAB.

PREREQUISITES
  • Understanding of control systems and feedback loops
  • Familiarity with MATLAB and its control system toolbox
  • Knowledge of transfer functions and their representations
  • Basic algebraic manipulation of polynomials
NEXT STEPS
  • Explore MATLAB's control system toolbox documentation for the feedback function
  • Learn about the derivation of closed-loop transfer functions in control theory
  • Investigate the differences between open-loop and closed-loop systems
  • Practice using MATLAB to simulate various feedback configurations
USEFUL FOR

Control system engineers, MATLAB users, and students studying feedback mechanisms in engineering systems will benefit from this discussion.

nand_1
Messages
15
Reaction score
0
Hi All,

Suppose I have the following system:

A = 1 / (S + 1) (open loop)

B = S / (2S + 1) (feedback path)

I know that the positive feedback closed loop system will thus be: A / (1 - AB), and entering this manually in MATLAB (as well as doing it by hand), I get:


2 s^2 + 3 s + 1
-----------------------
2 s^3 + 4 s^2 + 3 s + 1

However, when I use the following command:

sys = feedback(A,B,+1)

I get the following:

2 s + 1
---------------
2 s^2 + 2 s + 1


Is there something I'm missing?

Regards,
 
Physics news on Phys.org
\frac{2s^2+3s+1}{2s^3+4s^2+3s+1} = \frac{(2s+1)(s+1)}{(2s^2+2s+1)(s+1)} = \frac{2s+1}{2s^2+2s+1}
 
  • Like
Likes   Reactions: 1 person
Thanks Kreil, realized this later on after the post. Thought it was an issue with the way i was using the feedback function.
 

Similar threads

  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 5 ·
Replies
5
Views
3K
  • · Replies 5 ·
Replies
5
Views
3K
  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 1 ·
Replies
1
Views
2K
Replies
1
Views
2K
  • · Replies 5 ·
Replies
5
Views
2K
Replies
2
Views
3K
  • · Replies 3 ·
Replies
3
Views
5K