Solving math by equal
Mostrar comentarios más antiguos

Solve math problems in 2 ways
1.Use MATLAB
2 Relieve your hands manually
someone please help me
5 comentarios
cong
el 28 de Abr. de 2025
Matt J
el 28 de Abr. de 2025
We might be able to tell you what you're doing wrong if you show us what you've done.
Torsten
el 28 de Abr. de 2025
Do you know about the MATLAB functions "tf" and "margin" ? If not, take a look at them: they should solve your problem.
Walter Roberson
el 28 de Abr. de 2025
https://www.mathworks.com/matlabcentral/answers/1724785-calculation-of-phase-margin involves exactly the same system.
Respuesta aceptada
Más respuestas (1)
Hi @cong
You can assign a value to K, compute the transfer function G(s), and then use the margin(G) command to find the phase margin (Pm). Here is the code snippet for the three steps:
However, I prefer not to provide advanced code at this stage, as I believe you may not yet be prepared for it. Anyhow, the real problem is, Can you really find the static gain K such that the Phase margin is exactly 50°?
s = tf('s');
%% When K = 3.44
K = 3.44;
G = K/(s*(s^2 + 1*s + 4));
figure
margin(G); grid on, grid minor
%% When K = 3.45
K = 3.45;
G = K/(s*(s^2 + 1*s + 4));
figure
margin(G); grid on, grid minor
2 comentarios
cong
el 28 de Abr. de 2025
Sam Chak
el 28 de Abr. de 2025
I no longer memorize the formula for calculating the phase margin by hand. Therefore, I rely on the MATLAB Control System Toolbox. You should consult your Control Professor, as they are compensated to teach students, not the other way around.
Categorías
Más información sobre Stability Analysis en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!




