You can put them into an elisp src block to try it out. They have to go in an init file to be permanent. I just made a symlink to the matlab executable on my path.

The ipython functions are defined in ob-ipython, https://github.com/gregsexton/ob-ipython I think.

John

-----------------------------------
Professor John Kitchin 
Doherty Hall A207F
Department of Chemical Engineering
Carnegie Mellon University
Pittsburgh, PA 15213
412-268-7803

On Sat, Mar 11, 2017 at 11:50 AM, Uwe Brauer <oub@mat.ucm.es> wrote:
>>> "John" == John Kitchin <jkitchin@andrew.cmu.edu> writes:

   > The kernel provides a "session" so matlab stays alive and doesn't have to
   > restart on every block.

   > The kernel might require python3.

Although I think I installed the kernel, I am not sure about the code
you sent me, namely

(defalias 'org-babel-execute:matlab 'org-babel-execute:ipython)
(defalias 'org-babel-prep-session:matlab 'org-babel-prep-session:ipython)
(defalias 'org-babel-matlab-initiate-session 'org-babel-ipython-initiate-session)

These ipython functions where are they supposed to be defined?

BTW where do you  tell the kernel about the matlab executables?

Uwe