Matlab: transfer function determination

Join the discussion
Ask a follow-up here, or get your own question answered by working scientists, mathematicians and engineers — people, not an autocomplete.
Real named experts · corrections over time · the nuance an AI answer skips
3 replies · 5K views
serbring
Messages
267
Reaction score
2
I have a 2 dof vibration system, I have determined the differential equation of the model, can I determine the trasfer function readily with matlab, without using manual algebra operation?
In other word, I have that differential equation system:

[m]x''+[c]x'+[k]x=[f]

where:
[m] mass matrix
[c] damping matrix
[k] stiffness matrix
[f] external forces matrix

through laplace transformation I obtain:

s^[m]x(s)+s[c]x(x)+[k]x(s)=[f]

where s is the laplace variable, how can I find [f]/[x]?
I'm searching a way for estimating readily the transfer function of mechanical system, it is a loss of time to perform the calculation every time
 
Physics news on Phys.org
may anyone help me?
 
You've pretty much got the TF. Rearrange the laplace you've done above so you get f/x = tf (factorise the left side wrt to X). From there, you can use MATLAB to analyse the TF.
MATLAB tools(look in help): tf, bode, ltview.
The time required to manually calculate the TF is trivial for systems like this. You can use dsolve to get a symbolic solution to the ODE but it's not really necessary
 
ddarvil said:
You've pretty much got the TF. Rearrange the laplace you've done above so you get f/x = tf (factorise the left side wrt to X). From there, you can use MATLAB to analyse the TF.
MATLAB tools(look in help): tf, bode, ltview.
The time required to manually calculate the TF is trivial for systems like this. You can use dsolve to get a symbolic solution to the ODE but it's not really necessary

I know the tf, bode function, but how can I use them when the system has more than one dofs?