System Identification Transfer Function response is different in simulink

3 Ansichten (letzte 30 Tage)
Vincent Gagliardo
Vincent Gagliardo am 26 Jul. 2016
Kommentiert: Geo am 23 Mär. 2023
I used system identification toolbox to generate a transfer function from measured step response data. Note that the measured data is non-uniformally sampled. The compare function shows 95.3% fitting.
I then referenced the transfer function to a LTI block in simulink.
The response from the transfer function output of the simulink block is different than the output of the compare function.
Why? What am I doing wrong?
* See code snippet below *
measured data is cm_mat_trim
[cm_mat_trim_re(:,2), cm_mat_trim_re(:,1)] = resample(cm_mat_trim(:,2), cm_mat_trim(:,1), 4);
test = iddata(cm_mat_trim_re(:,2),cm_mat_trim_re(:,3), 0.25);
sysTF = tfest(test, 2, 0, nan)
figure(4); compare(sysTF, test)
figure(3); plot(CtrlOut.time, CtrlOut.signals(2).values, 'b', cm_mat_trim(:,1), cm_mat_trim(:,2),'g') %compare simulink transfer function output with measured data
  1 Kommentar
Geo
Geo am 23 Mär. 2023
Hello Vincent,
I just have a similar problem where the response shown in system identification toolbox is different than the response simulink is giving me. Do you happen to remember how (and if) you solved it? Thank you in advance.

Melden Sie sich an, um zu kommentieren.

Antworten (0)

Kategorien

Mehr zu Linear Model Identification finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by