How to find error/uncertainty value on MatLab
6 views (last 30 days)
Show older comments
Hi,
Please can anyone tell me how I am able to find the error/uncertainty value on MatLab of plotted data (linear fitting model).
Many thanks
0 Comments
Answers (1)
Star Strider
on 17 Feb 2017
I am not certain what uncertainty values you want, but the File Exchange contributions polyparci (link) and polypredci (link) should provide them. They run in MATLAB and do not require any Toolboxes.
2 Comments
Rik
on 17 Feb 2017
If you are using the polyfit function, you can get the error with this syntax: [p,S] = polyfit(x,y,n)
Star Strider
on 17 Feb 2017
I never have.
What’s the error? How are you calling it to get the error?
That syntax is even quoted in the documentation for polyfit:
- [p,S] = polyfit(x,y,n) also returns a structure S that can be used as an input to polyval to obtain error estimates.
See Also
Categories
Find more on Descriptive Statistics in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!