>>> "Ken" == Ken Mankoff <mank...@gmail.com> writes:

   > I can't execute your code,

Why not
   >  but what does ":results output latex" show?
   > And what if you add the ";" to each line so it is not printed, except
   > the last, which is perhaps explicitly printed?


You are right! Thanks.

So I tried

#+begin_src matlab :results output latex
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

Problem is when I export that to a latex file, the exporter always uses
the verbatim environment, but this is not what I want, I want directly
the result of ltxjac=latex(jac) interpreted as latex not as source code.

Reply via email to