How can I make this graph with the "for" command?

조회 수: 1 (최근 30일)
Bilal
Bilal 2022년 11월 22일
편집: Bilal 2022년 11월 23일
Hi everyone. Can someone help ? How can I make this graph with the "for" command in the picture? (This question will be delete)
  댓글 수: 2
dpb
dpb 2022년 11월 22일
So, what have you done and where did you get stuck? What's the specific MATLAB Q?
Bilal
Bilal 2022년 11월 22일
편집: Bilal 2022년 11월 22일
I think the for command is: For a=[0, 0.2, 0.4,0.5,1,1.5 ]
But connecting it with graphs I can't get exactly 1 result in the end. And I can't plot the "undamped" , "critical" and "over" parts at all. Also I have 24 hours to do it.

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

채택된 답변

DGM
DGM 2022년 11월 22일
Good gravy it's been forever since I did any of this. Here's a start.
ze = [0 0.2 0.4 0.5 1 1.5];
for k = 1:numel(ze)
% 1/(s^2 + 2*ze*S + 1)
sys = tf(1,[1 2*ze(k) 1]);
stepplot(sys,25)
hold on
end
Needs legend, etc.
  댓글 수: 1
Bilal
Bilal 2022년 11월 23일
It's like you saved my life. I can't thank you enough. YOU ARE GREAT 🖤😃🤩🎉✨

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 2-D and 3-D Plots에 대해 자세히 알아보기

태그

제품


릴리스

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by