# About solving state space equation (mass, spring, damper)

13 visualizzazioni (ultimi 30 giorni)
Changwoo Lee il 1 Ott 2022
Hello, I have 4-DOF mass, spring, damper sysmtem.
1) My first question is how to construct the state space equation of the below diagram?
-The first force (F1) is imposed during the time t0~t1.
-Then, second force (F2) is imposed during the time t1~t2.
2) Then, within th time t0~t2, I want to get the each displacement (x1,x2,x3,x4)
In this case, how solve the system?
3) In my case, actually, F1 and F2 are not constants.
F1 is function of x3 (for example, F3=3*sin(x3))
F2 is function of x4 (for example, F4=2*cos(x4))
##### 1 CommentoMostra NessunoNascondi Nessuno
William Rose il 1 Ott 2022
@Changwoo Lee, this looks and sounds a lot like homework. This is not a homework site. Also, your quesitons are about math and physics, not Matlab. There are better sites for those questions - stack exchange for example.
Here are hints to get you started: for each mass, the equation is F = m*a = m*dv/dt = m*d2x/dt2. You can look at the diagram to determine the all the forces acting on each mass. Each mass has a position and a velocity. Those quantities are enough to describe the system.

Accedi per commentare.

### Risposta accettata

Sulaymon Eshkabilov il 1 Ott 2022
(1) Derive the equation of motion that will be 2nd order Differential equations
(2) Transform the derived equations into the Laplace transform i.e., tranform from 't' domain into 's' domain
(3) Write down the transfer functions of the system in 's' domain using tf()
(4) Convert the found trnasfer function into state-space representation using tf2ss()
(5) etc.
In fact, to find the response of your system you can use tf() formulation from step 3 directly.
##### 0 CommentiMostra -1 commenti meno recentiNascondi -1 commenti meno recenti

Accedi per commentare.

### Categorie

Scopri di più su Programming in Help Center e File Exchange

### Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by