How do I read residuals from a model fit?

2 Ansichten (letzte 30 Tage)
Alexander MacFarlane IV
Alexander MacFarlane IV am 2 Jan. 2019
Kommentiert: Star Strider am 2 Jan. 2019
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
MatlabResidualProblem.JPG

Akzeptierte Antwort

Alexander MacFarlane IV
Alexander MacFarlane IV am 2 Jan. 2019
Never mind.
Residuals needs to be capitalized.

Weitere Antworten (1)

Star Strider
Star Strider am 2 Jan. 2019
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 Kommentare
Alexander MacFarlane IV
Alexander MacFarlane IV am 2 Jan. 2019
Figured it couldn't hurt to ask.
Nice talking to you again and have a great 2019!
Alex
Star Strider
Star Strider am 2 Jan. 2019
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.

Melden Sie sich an, um zu kommentieren.

Produkte


Version

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by