;ELC
|
;;; Compiled
|
;;; in Emacs version 26.1
|
;;; with all optimizations.
|
|
;;; This file uses dynamic docstrings, first added in Emacs 19.29.
|
|
;;; This file does not contain utf-8 non-ASCII characters,
|
;;; and so can be loaded in Emacs versions earlier than 23.
|
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
|
(require 'ob)
|
(defvar org-babel-default-header-args:matlab nil)
|
(defvar org-babel-default-header-args:octave nil)
|
#@53 Shell command to run matlab as an external process.
|
(defvar org-babel-matlab-shell-command "matlab -nosplash" (#$ . 522))
|
#@53 Shell command to run octave as an external process.
|
(defvar org-babel-octave-shell-command "octave -q" (#$ . 650))
|
#@150 If non-nil use matlab-shell-run-region for session evaluation.
|
This will use EmacsLink if (matlab-with-emacs-link) evaluates
|
to a non-nil value.
|
(defvar org-babel-matlab-with-emacs-link nil (#$ . 772))
|
(defvar org-babel-matlab-emacs-link-wrapper-method "%s\nif ischar(ans), fid = fopen('%s', 'w'); fprintf(fid, '%%s\\n', ans); fclose(fid);\nelse, save -ascii %s ans\nend\ndelete('%s')\n")
|
(defvar org-babel-octave-wrapper-method "%s\nif ischar(ans), fid = fopen('%s', 'w'); fprintf(fid, '%%s\\n', ans); fclose(fid);\nelse, dlmwrite('%s', ans, '\\t')\nend")
|
(defvar org-babel-octave-eoe-indicator "'org_babel_eoe'")
|
(defvar org-babel-octave-eoe-output "ans = org_babel_eoe")
|
#@62 Execute a block of matlab code with Babel.
|
|
(fn BODY PARAMS)
|
(defalias 'org-babel-execute:matlab #[514 "\300\301#\207" [org-babel-execute:octave matlab] 6 (#$ . 1456)])
|
#@80 Execute a block of octave code with Babel.
|
|
(fn BODY PARAMS &optional MATLABP)
|
(defalias 'org-babel-execute:octave #[770 "\300\301\302\203 \303\202\f \304\"!\305\236A\"\306\236A\307\310!#\3111+ \312!0\202- \210\313\314\203C \315\316\317\301\320\"E\321#\202D $?\205h \322\323\324\n\236A\325\236A\"\323\326\236A\327\f\236A\"#\207" [intern format "org-babel-%s-initiate-session" "matlab" "octave" :session :result-type org-babel-expand-body:generic org-babel-variable-assignments:octave (error) org-babel-graphical-output-file nil org-babel-octave-evaluate mapconcat identity "set (0, \"defaultfigurevisible\", \"off\");" "print -dpng %s" "\n" org-babel-reassemble-table org-babel-pick-name :colname-names :colnames :rowname-names :rownames] 16 (#$ . 1633)])
|
#@59 Prepare SESSION according to PARAMS.
|
|
(fn SESSION PARAMS)
|
(defalias 'org-babel-prep-session:matlab #[514 "\300\301#\207" [org-babel-prep-session:octave matlab] 6 (#$ . 2423)])
|
#@80 Return list of octave statements assigning the block's variables.
|
|
(fn PARAMS)
|
(defalias 'org-babel-variable-assignments:octave #[257 "\300\301\302!\"\207" [mapcar #[257 "\300\301@\302A!#\207" [format "%s=%s;" org-babel-octave-var-to-octave] 6 "\n\n(fn PAIR)"] org-babel--get-vars] 5 (#$ . 2607)])
|
(defalias 'org-babel-variable-assignments:matlab 'org-babel-variable-assignments:octave)
|
#@166 Convert an emacs-lisp value into an octave variable.
|
Converts an emacs-lisp variable into a string of octave code
|
specifying a variable of the same value.
|
|
(fn VAR)
|
(defalias 'org-babel-octave-var-to-octave #[257 "\211<\203 \300\301\302\211@<\203 \303\202 \304#\305Q\207\211;\203\" |