You are on page 1of 4

plot(Output.time,Output.signals.

values)
xlabel('Time','fontweight','bold','fontsize',9)
ylabel('Amplitude','fontweight','bold','fontsize',9)
title('Step Response for system
G(s)=1/(s+1)','fontweight','bold','fontsize',10)
legend('Step Response',1)
plot(Output.time,Output.signals.values)
xlabel('Time','fontweight','bold','fontsize',9)
ylabel('Amplitude','fontweight','bold','fontsize',9)
title('Step Response for system
G(s)=1/(s+1)','fontweight','bold','fontsize',10)
legend('Step Response',1)
plot(Output.time,Output.signals.values)
xlabel('Time','fontweight','bold','fontsize',9)
ylabel('Amplitude','fontweight','bold','fontsize',9)
title('Step Response for system
G(s)=1/(s+1)','fontweight','bold','fontsize',10)
legend('Step Response',1)

asdflmsdfasd

s
d
Command to plot in MATLAB
plot(TimeOut,Output)
grid on
xlabel('Time','fontweight','bold','fontsize',9)
ylabel('Amplitude','fontweight','bold','fontsize',9)
title('Step Response for system
G(s)=1/(s+1)','fontweight','bold','fontsize',10)
legend('Step Response',1)

For data synchronization also export Output as structure from Simulink to MATLAB workspace .

Figure 1: Use Transfer Function Block

Command to plot in MATLAB


plot(Output.time,Output.signals.values)
xlabel('Time','fontweight','bold','fontsize',9)
ylabel('Amplitude','fontweight','bold','fontsize',9)
title('Step Response for system
G(s)=1/(s+1)','fontweight','bold','fontsize',10)
legend('Step Response',1)
grid on

Task: Following are the two transfer functions. Plot the step and impulse response and label properly in
script as well as in Simulink.
1. (s+1)/(s2+2s+1) 2. 10/(s+1)(s+3)(s+5)

In your report label each graph properly as in examples. Also insert caption with each figure. Most
importantly write your observations after each sub-task.

Important Note:
If student will copy the lab report, all the identical copy holders
Command to plot in MATLAB
plot(TimeOut,Output)
grid on
xlabel('Time','fontweight','bold','fontsize',9)
ylabel('Amplitude','fontweight','bold','fontsize',9)
title('Step Response for system
G(s)=1/(s+1)','fontweight','bold','fontsize',10)
legend('Step Response',1)

For data synchronization also export Output as structure from Simulink to MATLAB workspace .

Figure 2: Use Transfer Function Block

Command to plot in MATLAB


plot(Output.time,Output.signals.values)
xlabel('Time','fontweight','bold','fontsize',9)
ylabel('Amplitude','fontweight','bold','fontsize',9)
title('Step Response for system
G(s)=1/(s+1)','fontweight','bold','fontsize',10)
legend('Step Response',1)
grid on

Task: Following are the two transfer functions. Plot the step and impulse response and label properly in
script as well as in Simulink.
1. (s+1)/(s2+2s+1) 2. 10/(s+1)(s+3)(s+5)

In your report label each graph properly as in examples. Also insert caption with each figure. Most
importantly write your observations after each sub-task.

Important Note:
If student will copy the lab report, all the identical copy holders
Command to plot in MATLAB
plot(TimeOut,Output)
grid on
xlabel('Time','fontweight','bold','fontsize',9)
ylabel('Amplitude','fontweight','bold','fontsize',9)
title('Step Response for system
G(s)=1/(s+1)','fontweight','bold','fontsize',10)
legend('Step Response',1)

For data synchronization also export Output as structure from Simulink to MATLAB workspace .

Figure 3: Use Transfer Function Block

Command to plot in MATLAB


plot(Output.time,Output.signals.values)
xlabel('Time','fontweight','bold','fontsize',9)
ylabel('Amplitude','fontweight','bold','fontsize',9)
title('Step Response for system
G(s)=1/(s+1)','fontweight','bold','fontsize',10)
legend('Step Response',1)
grid on
Task: Following are the two transfer functions. Plot the step and impulse response and label properly in
script as well as in Simulink.
1. (s+1)/(s2+2s+1) 2. 10/(s+1)(s+3)(s+5)

In your report label each graph properly as in examples. Also insert caption with each figure. Most
importantly write your observations after each sub-task.

Important Note:
If student will copy the lab report, all the identical copy holders

You might also like