System Identification Transfer Function response is different in simulink
조회 수: 3 (최근 30일)
이전 댓글 표시
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
Geo
2023년 3월 23일
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.
답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Linear Model Identification에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!