Change matlab output filtering to remove white space from end of line only, so that tabular output looks right (at the cost of inserting all the extra spaces that 'disp' generates).