Question: how to find error between two curves matlab?
Answer: dy = y0-y1 ; % error.
abs_dy = abs(y0-y1) ; % absolute error.
relerr = abs(y0-y1)./y0 ; % relative error.
pererr = abs(y0-y1)./y0*100 ; % percentage error.
mean_err = mean(abs(y0-y1)) ; % mean absolute error.
MSE = mean((y0-y1).^2) ; % Mean square error.