>>> "John" == John Kitchin writes: > Maybe you need :exports and not :export. > John I tried #+begin_src matlab :tangle test.m :exports code :padline no function [ll x]=mitest(A0,x0) % initialization format long epsi=1.e-3; nit=0; nmaxit=200; Delta=10; A=A0; while Delta>epsi & nit