emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] workflow, matlab+latex in org file


From: Uwe Brauer
Subject: Re: [O] workflow, matlab+latex in org file
Date: Sat, 11 Mar 2017 14:12:02 +0000
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux)

>>> "Eric" == Eric S Fraga <address@hidden> 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')





reply via email to

[Prev in Thread] Current Thread [Next in Thread]