Watch this Author's files
If you are putting multiple tests in a single file, don't start any function names with "setup". The following code fails. Remove setup and it works.
function test_suite = testFliplr
in = magic(3);
assertEqual(fliplr(in), in(:, [3 2 1]));
assertEqual(fliplr([1 4 10]), [10 4 1]);
[a b] = setupdata;
function [a b] = setupdata
a = 1;
b = 2;
I think there is a divide by inf in computing the relative tolerance. Using the 'absolute' flag provides the correct result.
Great software! Thanks. I noticed a bug:
Will not flag a failure.