but if you insist on having a oneliner, you can use the much less clear nthargout:
%!test
%! a = [10]; b = [1];
%! assert (nthargout ([1 2], @sumdiff, a, b), {11, 9})
We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.OkRead more