STEP RESPONSE
G(S) = ( 1 / 6s+1 )
Program :
clc;
clear all;
num = [1];
den = [6 1];
sys = tf (num, den);
impulse(sys);
grid();
title('Unit Impulse Response of G(S) = ( 1 / 6s+1 )');
xlabel('Time in Seconds');
ylabel('Response');
One Line Command:
G(S) = ( 10 / s+1 )
impulse(tf([10],[1 1]));
clc: Used to clear the screen
clear all: Used to clear all the variables from memory;
Assign Num,Den as Variable using Numerator and Denominator Values
Assign sys as Tranfer Function using tf();
Plot Impulse Response using impulse();
grid(); shows the grid lines on your plot
title(‘something’); set a title for your plot
xlabel(‘something); set a x-axis name
ylabel(‘something’); set a y-axis name
Sharing is Caring