필터 지우기
필터 지우기

Simulink Plot for damping ratio of second order systems

조회 수: 17 (최근 30일)
Meena Farag
Meena Farag 2016년 2월 19일
댓글: Sebastian Castro 2016년 2월 21일
I am trying to plot several signals that correspond to different damping ratios on one plot in Simulink. Rather than creating several transfer functions corresponding to each damping ratio and then using MUX, how might I do this using Simulink? Is there a way to create a vector with all my damping ratio arguments and then have Simulink go through them all?

답변 (1개)

Sebastian Castro
Sebastian Castro 2016년 2월 20일
Many Simulink blocks support multidimensional signals.
If you enter an array for the Gain (?) block where your damping ratio is specified, such as For example, [0.1 0.5 1 5 10], what do you see in the visualization results?
If all the blocks in the model work with arrays, you should see your output would be a 5-element signal.
- Sebastian
  댓글 수: 2
Meena Farag
Meena Farag 2016년 2월 21일
편집: Meena Farag 2016년 2월 21일
The damping ratio is specified in the denominator of the transfer function, it's not a gain factor. The problem is that the denominator of the transfer function block in Simulink only accepts row vectors (not matrices, as is the case for the numerator) corresponding to the polynomial coefficients of the transfer function denominator.
Sebastian Castro
Sebastian Castro 2016년 2월 21일
If you have the Control System Toolbox, you can create a multi-output transfer function variable and then use that in a model with an LTI System block.
Here's what I tried and it works well:
% Create a 10-output transfer function in a for-loop
for i = 1:10
sys(i,1) = tf(1,[1 i 2*i]);
end
By the way, if you don't have the toolbox, what I would recommend is doing a parameter; that is, performing multiple simulations with different values, collecting the results in MATLAB, and plotting them yourself.
- Sebastian

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

카테고리

Help CenterFile Exchange에서 Signal Generation에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by