Function: org-babel-octave-var-to-octave

org-babel-octave-var-to-octave is a byte-compiled function defined in ob-octave.el.gz.

Signature

(org-babel-octave-var-to-octave VALUE)

Documentation

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.

Source Code

;; Defined in /usr/src/emacs/lisp/org/ob-octave.el.gz
(defun org-babel-octave-var-to-octave (value)
  "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."
  (if (listp value)
      (concat "[" (mapconcat #'org-babel-octave-var-to-octave value
			     (if (listp (car value)) "; " ",")) "]")
    (cond
     ((stringp value)
      (format "'%s'" value))
     (t
      (format "%s" value)))))