Resid command and treatment of iddata
조회 수: 4 (최근 30일)
이전 댓글 표시
Hello all,
I have been struggling for hours, and I do not seem to get a very simple thing...
I use the command resid in order to obtain residuals from predictions of an AR model I already estimated using the ar command. I see that I can plot these residuals, but how can I actually obtain them in a vector, in order to be able to use them somewhere else? In general, how can I get, better transform, iddata into "normal" form?
Thanks
Kyriacos
댓글 수: 0
채택된 답변
Arkadiy Turevskiy
2012년 3월 2일
If you did
>>e=resid(model,data);
then all you do to get the residuals as a vector is
>>resid_vector=e.y;
In general to access idatada signal just do
>>data.u
>>data.y
See doc iddata for more details.
HTH. Arkadiy
댓글 수: 0
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Residual Analysis에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!