Error between two non linear functions

11 views (last 30 days)
Hello.
I would like to determine the error between two functions that I have plotted. They are non linear and canot be linearized. One is simulated, and one is a set of data from an experiment. I have tried to use the goodnessoffit function but im not sure if that is the correct method. I am not even sure how to approach this problem from an error analysis stand point.
What should I do, or look into?
Thanks in advanced
plot(t,T1,'red');
hold on;
scatter(t,T1_d,'.','blue')
I have attached a picture of the data and the function.

Accepted Answer

Star Strider
Star Strider on 21 Oct 2022
The goodnessOfFit function is for System Identification Toolbox estimated systems.
If you are estimating a nonlilnear model, then the fitnlm function will give you the necessary statistics on the parameters, and the associated predict function will estimate the confidence intervals on the fitted function.
It would likely be best to estimate the system with the data and get the relevant parameter estimates and confidence intervals for them, and then assess it with the associated predict function.

More Answers (0)

Categories

Find more on Linear and Nonlinear Regression 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!