'Enter Applied Force:' 'Enter Mass:' 'Enter Value of B:' 'Enter Value of K:'
The document describes three different dynamic systems - a mechanical system, an electrical system, and an electromechanical system. For each system, it prompts the user to input parameter values, defines the transfer function model of the system based on these parameters, and plots the impulse and step responses of the system to analyze its behavior over time.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0 ratings0% found this document useful (0 votes)
26 views3 pages
'Enter Applied Force:' 'Enter Mass:' 'Enter Value of B:' 'Enter Value of K:'
The document describes three different dynamic systems - a mechanical system, an electrical system, and an electromechanical system. For each system, it prompts the user to input parameter values, defines the transfer function model of the system based on these parameters, and plots the impulse and step responses of the system to analyze its behavior over time.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 3
MECHANICAL SYSTEM
F = input ('Enter applied force :');
M = input ('Enter mass :'); B = input ('Enter value of B :'); K = input ('Enter value of K :'); num =[F]; den = [M B K]; sys = tf(num,den); subplot (1,2,1) impulse(sys); title('Impluse response of Mechanical system'); xlabel('time'); ylabel('displacemnt'); subplot (1,2,2) step(sys); title('Step response of Mechanical system'); xlabel('time'); ylabel('displacemnt'); ELECTRICAL SYSTEM
V =input('Enter the value of input voltage:');
R =input('Enter the value of resistor:'); C =input('Enter the value of capacitor:'); num = [V]; den = [ (R*R*C*C) (3*R*C) 1]; sys = tf(num,den); subplot (1,2,1) impulse(sys); title('Impluse response of Electrical system'); xlabel('time'); ylabel('voltage'); subplot (1,2,2) step(sys); title('Step response of Electrical system'); xlabel('time'); ylabel('voltage'); ELECTROMECHANICAL SYSTEM
V =input('Enter the value of input voltage:');
R =input('Enter the value of resistor:'); L =input('Enter the value of inductor:'); Kt =input('Enter the value of torque constant:'); Kb =input('Enter the value of back emf constant:'); J =input('Enter the value of moment of inertia:'); B =input('Enter the value of B:'); num = [Kt*V]; den = [(J*L) ((J*R)+(B*L)) ((R*B)+(Kb*Kt)) 0]; sys = tf(num,den); subplot (1,2,1) impulse(sys); title('Impluse response of Electromechanical system'); xlabel('time'); ylabel('voltage'); subplot (1,2,2) step(sys); title('Step response of Electromechanical system'); xlabel('time'); ylabel('voltage');