Damping and frequency from simulation data

28 visualizaciones (últimos 30 días)
MM
MM el 31 de Mzo. de 2020
Comentada: MD Riaz Pervez el 28 de Abr. de 2023
I have some simulation data, for example y in the attachment. I can manually calculate the damping and frequency with logarithmic decrement, but can I do this automated? I can't seem to figure out how.
And/or can I fit a nonlinear function through my datapoints? I tried polyfit but that doesn't work with time series.
  2 comentarios
Ameer Hamza
Ameer Hamza el 2 de Abr. de 2020
How do you manually calculate the damping and frequency? Is there a mathematical formula? What type of nonlinear fit do you want to fit your data?
MM
MM el 3 de Abr. de 2020
I calculated it like they did here:
With damping:
And frequency:
What type of nonlinear fit? I don't know, any that will work. I was hoping a fit would maybe let me help to calculate the frequency and daming ratio

Iniciar sesión para comentar.

Respuestas (1)

Ameer Hamza
Ameer Hamza el 3 de Abr. de 2020
The following code automatically estimate the parameters from the signal.
load('PositionY_example.mat');
[val, locs] = findpeaks(y.Data);
peak_times = y.Time(locs);
t0 = t(locs(1));
tn = t(locs(2:end));
omega = mean((1:numel(tn))'./(tn-t0));
xt0 = val(1);
xtn = val(2:end);
delta = mean(log(xtn./xt0)./(1:numel(xtn))');
zeta = delta/sqrt(4*pi^2+delta^2);
As you already know the value of ω, δ, and ζ of your signal, you can calculate the nonlinear fit for your data using this equation.
  2 comentarios
Maitham Alabbad
Maitham Alabbad el 8 de Dic. de 2021
What is variable t represent ?
t0 = t(locs(1));
tn = t(locs(2:end));
MD Riaz Pervez
MD Riaz Pervez el 28 de Abr. de 2023
t represent time. Here use t=Time therefore change that to make a single

Iniciar sesión para comentar.

Categorías

Más información sobre Linear Model Identification en Help Center y File Exchange.

Productos


Versión

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by