#+options: toc:nil #+startup: beamer * The slide ** The code :B_block:BMCOL: :PROPERTIES: :BEAMER_col: 0.7 :BEAMER_env: block :END: Define an inline function: #+name: thecode #+begin_src octave :exports both f = @(x) (x(1)-3)^2+(x(2)-5)^2+8; f([5, 6]) #+end_src ** The results :B_block:BMCOL: :PROPERTIES: :BEAMER_col: 0.3 :BEAMER_env: block :END: The result from applying that function to the vector [5, 6]: #+results: thecode : 13