12+ Best Free Blogger Templates 2022-Top Best Free Blogger Templates-Download Now

Simulation of Impulse Response in First Order Linear System

1 min read

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









You may like these posts

Post a Comment