MATLAB: Plotting graph in simulink

graphMATLAB

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

Best Answer

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