What exactly does compare(___,kstep) plot?

조회 수: 2 (최근 30일)
Mingming Du
Mingming Du 2025년 2월 6일
이동: Walter Roberson 2025년 2월 17일
I read this material https://ww2.mathworks.cn/help/ident/ug/definition-simulation-and-prediction.html and I still can not figure out what each data point represent when I use compare(idataexample,sys,2).
For example, as mentioned here
at t = 10, we predict 2 steps:
yp(11|10) = 0.9ym(10) + 1.5um(10),
yp(12|10) = 0.9yp(11|10) + 1.5um(11).
And so on, at t = 11, we predict 2 steps,:
yp(12|11) = 0.9ym(11) + 1.5um(11),
yp(13|11) = 0.9yp(12|11) + 1.5um(12).
So, when
compare
finally gives a plot, what does the value at t = 12 represent? Is it yp(12|10), yp(12|11), or something else?
By the way, I think there might be an error in the example(CompareEstimatedModeltoMeasuredDataExample') in the documentation ("For instance, the point at t = 15s is based on output measurements taken at or prior to t = 5s").
Thanks in advance for your help!

채택된 답변

Karan Singh
Karan Singh 2025년 2월 11일
First, I am not able to open the links you provided. I tried some modifications, but I still couldn't access it.
Now moving one to your query, when you run
compare(data, sys, 2)
The function evaluates 2-step-ahead predictions for every time step based on past measurements.
At each time step " t ", the prediction " yp(t+2t) " is computed using available past input-output data. When "compare" plots a prediction at " t=12 ", it is actually plotting " yp(1210) " because:
  • The horizon is 2, meaning we predict " t+2 " values.
  • The prediction at " t=12 " was made at " t=10 ", using the available measured data up to " t=10 ".
Karan
  댓글 수: 2
Walter Roberson
Walter Roberson 2025년 2월 11일
The URL posted originally ended in a comma; I have repaired it now.
Mingming Du
Mingming Du 2025년 2월 17일
이동: Walter Roberson 2025년 2월 17일
@Karan Singh @Walter Roberson Really appreciate for your help.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Residual Analysis에 대해 자세히 알아보기

제품


릴리스

R2024a

Community Treasure Hunt

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

Start Hunting!

Translated by