Hi I using GNU emacs 29.4 and org 9.7.14. I swore one of the following code snippets using matlab with results were exported to LaTeX, but only the results not the matlab code snippets.
Not any more always the code and the result and the code is exported. Any idea how to solve this Thanks Uwe Brauer Code follows * First #+begin_src matlab :tangle annu_sol_ex23.m :padline yes :results output raw :exports results :eval never-export addpath /home/oub/ALLES/HGs/Matlab-init/Routh-Hurwitz num=[1 1]; den=[1 5 -6 0]; sys=tf(num,den); latex_str = micaracteristic(num, den); #+end_src #+RESULTS: \begin{equation} K-6\,s+K\,s+5\,s^2+s^3=0 \end{equation} * Second #+begin_src matlab :exports results :results output raw addpath /home/oub/ALLES/HGs/Matlab-init/Routh-Hurwitz num=[1 1]; den=[1 5 -6 0]; sys=tf(num,den); latex_str = micaracteristic(num, den); #+end_src #+RESULTS: \begin{equation} K-6\,s+K\,s+5\,s^2+s^3=0 \end{equation} * Third #+begin_src matlab :tangle annu_sol_ex23.m :padline yes :results output raw :exports code :eval never-export addpath /home/oub/ALLES/HGs/Matlab-init/Routh-Hurwitz num=[1 1]; den=[1 5 -6 0]; sys=tf(num,den); latex_str = micaracteristic(num, den); #+end_src #+RESULTS: \begin{equation} K-6\,s+K\,s+5\,s^2+s^3=0 \end{equation} * Fourth #+begin_src matlab :tangle annu_sol_ex23.m :padline yes :exports both :eval never-export :results output latex addpath /home/oub/ALLES/HGs/Matlab-init/Routh-Hurwitz num=[1 1]; den=[1 5 -6 0]; sys=tf(num,den); latex_str = micaracteristic(num, den); #+end_src #+RESULTS: #+begin_export latex \begin{equation} K-6\,s+K\,s+5\,s^2+s^3=0 \end{equation} #+end_export * Fifth #+begin_src matlab :tangle annu_sol_ex23.m :padline yes :exports both :eval never-export :results output latex addpath /home/oub/ALLES/HGs/Matlab-init/Routh-Hurwitz num=[1 1]; den=[1 5 -6 0]; sys=tf(num,den); latex_str = micaracteristic(num, den); #+end_src #+RESULTS: #+begin_export latex \begin{equation} K-6\,s+K\,s+5\,s^2+s^3=0 \end{equation} #+end_export * Six #+begin_src matlab :tangle annu_sol_ex23.m :padline yes :results output raw :exports results :eval never-export addpath /home/oub/ALLES/HGs/Matlab-init/Routh-Hurwitz num=[1 1]; den=[1 5 -6 0]; sys=tf(num,den); latex_str = micaracteristic(num, den); #+end_src #+RESULTS: \begin{equation} K-6\,s+K\,s+5\,s^2+s^3=0 \end{equation} -- I strongly condemn Hamas heinous despicable pogroms/atrocities on Israel I strongly condemn Putin's war of aggression against Ukraine. I support to deliver weapons to Ukraine's military. I support the EU and NATO membership of Ukraine.
smime.p7s
Description: S/MIME cryptographic signature