[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
## [O] workflow, matlab+latex in org file

**From**: |
Uwe Brauer |

**Subject**: |
[O] workflow, matlab+latex in org file |

**Date**: |
Mon, 11 Jul 2016 12:32:47 +0000 |

**User-agent**: |
Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux) |

Hello
I want in a org file, to include matlab code and run it (that I know how
to do)
Then I want certain results, which are symbolic variables, expressed in
latex, we I achieve using matlab's latex command.
Like
#+begin_src matlab :results output
clear all
syms e p R g w K K2
phi=[(e + (e+p)*R^2)^((g-1)/2);((e+p)*R*sqrt(1+R^2))/(e+(e+p)*R^2)]
jac=jacobian(phi,[e,p])
ltxjac=latex(jac)
#+end_src
This result should of course also be included in the orgfile.
But then I want to export the org file to latex, such that only the
results, which have been converted to latex are exported and all the
matlab command should be ignored, that is in that case:
ltxjac but nicely surrounded by say $.
Anybody has an idea how to do this efficiently?
thanks
regards
Uwe Brauer

**[O] workflow, matlab+latex in org file**,
*Uwe Brauer* **<=**