Skip to main content

assertWithinRange.m


% This function is part of the NMSM Pipeline, see file for full license.
%
% This function asserts if the experimental value is within a certain range
% of the expected value.
%
% (number, number, number) -> (None)
% Asserts true if values are close enough together


function assertWithinRange(experimental, expected, range)
assert(all(abs(experimental-expected)<range,[1 2 3 4]))
end