You are on page 1of 3

Experiment number 2:- State Model Representation Of Mechanical System

Que.1. Consider The Single Mechanical System Find Out Its State Space Model & Its State Response.



ANSWER:= (EDITOR WINDOW)

clc
clear all
close all
M=input('Enter The Value of Mass ')
B=input('Enter The Value Of Damper ')
K=input('Enter The Value Of Spring ')
U=input('Enter The Value Of Force To The System ')
A=tf(U, [M,B,K])
[a b c d]=tf2ss(1, [M,B,K])
e=eig(A)
[V,D]=eig(a)
step(A)
%impulse(A)

(COMMAND WINDOW)

Enter The Value of Mass 3
M =
3
Enter The Value Of Damper 4
B =
4
Enter The Value Of Spring 5
K =
5
Enter The Value Of Force To The System2
U =
2
A =
2
---------------
3 s^2 + 4 s + 5

Continuous-time transfer function.

a =
-1.3333 -1.6667
1.0000 0
b =
1
0
c =
0 0.3333
d =
0
e =
-0.6667 + 1.1055i
-0.6667 - 1.1055i


V =
0.7906 0.7906
-0.3162 - 0.5244i -0.3162 + 0.5244i
D =

-0.6667 + 1.1055i 0
0 -0.6667 - 1.1055i
In command window it shows the above values....
And it shows the plot as follows....

You might also like