Skip to content
Snippets Groups Projects
Verified Commit 88b427f7 authored by Sébastien Villemot's avatar Sébastien Villemot
Browse files

Compatibility fix for MATLAB R2014a

MATLAB R2014a does not like the syntax “abs(x).data” where “x” is a dseries.
parent 820df39f
Branches
Tags
No related merge requests found
......@@ -126,6 +126,7 @@ fprintf('Estimate of e_c_m: %f \n', e_c_m_iterative_ols)
fprintf('Estimate of c_z_1: %f \n', c_z_1_iterative_ols)
fprintf('Estimate of c_z_2: %f \n', c_z_2_iterative_ols)
if any(abs(resid_nls-resid_iterative_ols).data > 1e-4)
difference = abs(resid_nls-resid_iterative_ols);
if any(difference.data > 1e-4)
error('Iterative OLS and NLS do not provide consistent results.')
end
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment