[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')
- Re: [O] workflow, matlab+latex in org file, (continued)
- Re: [O] workflow, matlab+latex in org file, Uwe Brauer, 2017/03/10
- Re: [O] workflow, matlab+latex in org file, Uwe Brauer, 2017/03/11
- Re: [O] workflow, matlab+latex in org file, John Kitchin, 2017/03/11
- Re: [O] workflow, matlab+latex in org file, Uwe Brauer, 2017/03/11
- Re: [O] workflow, matlab+latex in org file, John Kitchin, 2017/03/11
- Re: [O] workflow, matlab+latex in org file, Uwe Brauer, 2017/03/11
- Re: [O] workflow, matlab+latex in org file, Uwe Brauer, 2017/03/11
- Re: [O] workflow, matlab+latex in org file, John Kitchin, 2017/03/11
- [O] matlab-shell-run-command (was: workflow, matlab+latex in org file), Uwe Brauer, 2017/03/12
Message not available