plotting graph in simulink

I have to plot graphs in simulink the graphs is i the link
how can we plot the graph in simulink,if not possible in simulink ,please tell how to plot in matlab m file

 採用された回答

Azzi Abdelmalek
Azzi Abdelmalek 2012 年 11 月 12 日
編集済み: Azzi Abdelmalek 2012 年 11 月 12 日

0 投票

This is a plot of a step response of second order system, you can use step command in a for loop, varying the damping coefficient sigma from 0 to 1
hold on;
sigma=.5;
for k=1:5
w0=1;
sigma=sigma+.1;
N=[w0];
D=[1 2*sigma*w0 w0^2]
step(N,D)
end
grid

8 件のコメント

Azzi Abdelmalek
Azzi Abdelmalek 2012 年 11 月 12 日
you can get the same figure in simulink, by simulating 5 ore more second order transfer function with differents damping coefficient sigma, and use one scope and one multiplexer
Pat
Pat 2012 年 11 月 17 日
Thanks Azzi But those grapg are in negative region,please tell how t0 plot
Azzi Abdelmalek
Azzi Abdelmalek 2012 年 11 月 17 日
What do you mean by they are in negative region, and show correctly the image you want to make.
Pat
Pat 2012 年 11 月 17 日
my graph is
in this non-stable region B is in negative axis..
non-stable region A is in positive axis..
is it possible to get graph like this..else plz tell hoe to plot non-stable region B in negative axis
Azzi Abdelmalek
Azzi Abdelmalek 2012 年 11 月 17 日
It appears that is a frequency response, what your graph is supposed to represent?
Pat
Pat 2012 年 11 月 17 日
ya azzi its a frequency response,it represents non stability regions during power flow
Azzi Abdelmalek
Azzi Abdelmalek 2012 年 11 月 17 日
You can't just draw this plot, you must provide the frequency response
Pat
Pat 2012 年 11 月 17 日
is it possible to draw non stability region B in negative region

サインインしてコメントする。

その他の回答 (1 件)

Kaustubha Govind
Kaustubha Govind 2012 年 11 月 6 日

1 投票

MATLAB might be more appropriate if you want to control the line styles. See Specifying Line Style.

5 件のコメント

Pat
Pat 2012 年 11 月 7 日
I need to plot like given in image ,the code to plot such graphs,can u help me please
K E
K E 2012 年 11 月 8 日
Here is documentation on getting started with plotting in Matlab. Here is another link on plotting.
Pat
Pat 2012 年 11 月 9 日
I know to plot different graphs with line specified ,but how to get the same shape as i have posted
Walter Roberson
Walter Roberson 2012 年 11 月 9 日
You put it together yourself, calculating where all the lines should go.
There is no built-in plot of that style that I know of in MATLAB (but it is possible it exists in a toolbox somewhere or in Simulink somewhere and I just have not run across it yet.)
Kaustubha Govind
Kaustubha Govind 2012 年 11 月 12 日
Pat: Are you asking us to identify the function that has been plotted? That might be difficult to do.

サインインしてコメントする。

製品

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by