Verification of loaded and copied data
2 views (last 30 days)
Jamie Williamson on 15 Sep 2021
I have Data points, one using the load function and another just copied. How can I verify the tolerance between is within an acceptable range using an if > array comp > else loop??
The 1st,15th and last rows of the copied data are:
The 1st,15th and last rows of the loaded data are:
Image Analyst on 15 Sep 2021
Not sure what you want but try subtracting and looking at absolute value of the difference
diffMatrix = abs(m1 - m2); % Difference of your two matrices.
tolerance = 0.01; % Whatever.
if any(diffMatrix(:) > tolerance)
maxDiff = max(diffMatrix(:))
warningMessage = sprintf('Warning : some elements differ by more than %f (up to %f).', ...
Adapt as needed.