>>> "Eric" == Eric S Fraga <e.fr...@ucl.ac.uk> writes:
> On Saturday, 11 Mar 2017 at 08:04, Uwe Brauer wrote: >> Does anybody know how to get a better formatted output, to get rid of >> the empty lines and newline? best would be a org-table? > Instead of relying on MATLAB's default output, you can generate > formatted output using fprintf [1]. Ah, great, but it only works for vectors x = [1, 2, 3, 4, 5] fprintf('|%d', x) For matrices it has to be sprintf %% A=[1 2 3; 4 5 6; 7 8 9] sprintf('|%d |%d |%d|\n',A')