How do I read residuals from a model fit?
조회 수: 4 (최근 30일)
이전 댓글 표시
mdl.residuals is not working for some unknown reason.
I have attached the code here using the LaTex button, but it looks like a single unreadable line, so i am attaching a picture of it as well.
Thanks for taking the time to look at this,
Alex![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/200057/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/200057/image.png)
![MatlabResidualProblem.JPG](https://www.mathworks.com/matlabcentral/answers/uploaded_files/200058/MatlabResidualProblem.jpeg)
댓글 수: 0
채택된 답변
추가 답변 (1개)
Star Strider
2019년 1월 2일
Try this instead:
r = mdl.Residuals.Raw
MATLAB prefers that you use its exact names with respect to its structures and structure fields, and since MATLAB is case-sensitive, every detail is relevant.
댓글 수: 4
Star Strider
2019년 1월 2일
Thank you! You, too!
It might be best to use the Contact Us link at the upper right corner of this page, and ask MathWorks directly for help. First, they will know all the capabilities that fitlm has (at least some of which may be undocumented), and second because your request may be more than most of us here have the experise to reply to. As well, if fitlm can’t currently do what you want, your request will be considered a request for an enhancement to fitlm in future releases, or an interim upgrade to the current release.
참고 항목
카테고리
Help Center 및 File Exchange에서 Regression에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!