How to determine the transfer function from experimental data?

I carried out a frequency domain response of a simulink model. This was the result
freq = [0.1 0.2 0.4 0.6 0.8 1 2 3 4 5 6 7 8 9 10];
gainDB = [-7.535 -7.535 -7.535 -7.131 -6.595 -6.073 -4.792 -5.514 -9.119 -13.311 -17.077 -20.175 -22.734 -25.036 -27.131];
semilogx(freq,gainDB,'--');
This is fine and I get a bode plot as anticipated.
How do i derive a transfer function of the system from here mathematically or using matlab?

Respuestas (1)

Not enough information. However this will get you started:
freq = [0.1 0.2 0.4 0.6 0.8 1 2 3 4 5 6 7 8 9 10];
gainDB = [-7.535 -7.535 -7.535 -7.131 -6.595 -6.073 -4.792 -5.514 -9.119 -13.311 -17.077 -20.175 -22.734 -25.036 -27.131];
figure(1)
semilogx(freq,gainDB,'--');
assumeNyquist = 10*2*pi;
assumeTs = 1./(assumeNyquist*2);
Resp = 10.^gainDB/20;
h = idfrd(Resp, freq, assumeTs);
np = 3;
nz = 1;
sys = tfest(h, np, nz)
figure(2)
bode(sys)

Etiquetas

Preguntada:

el 18 de Nov. de 2018

Respondida:

el 18 de Nov. de 2018

Community Treasure Hunt

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

Start Hunting!

Translated by