babel: More concise matlab/octave code template
Patch by Christopher Long
This commit is contained in:
parent
245d98786d
commit
2d1025298e
|
@ -111,13 +111,8 @@ then create. Return the initialized session."
|
||||||
|
|
||||||
(defvar org-babel-octave-wrapper-method
|
(defvar org-babel-octave-wrapper-method
|
||||||
"%s
|
"%s
|
||||||
if ischar(ans)
|
if ischar(ans), fid = fopen('%s', 'w'); fprintf(fid, '%%s\\n', ans); fclose(fid);
|
||||||
fid = fopen('%s', 'w')
|
else, save -ascii %s ans
|
||||||
fprintf(fid, '%%s', ans)
|
|
||||||
fprintf(fid, '\\n')
|
|
||||||
fclose(fid)
|
|
||||||
else
|
|
||||||
save -ascii %s ans
|
|
||||||
end")
|
end")
|
||||||
|
|
||||||
(defvar org-babel-octave-eoe-indicator "\'org_babel_eoe\'")
|
(defvar org-babel-octave-eoe-indicator "\'org_babel_eoe\'")
|
||||||
|
|
Loading…
Reference in New Issue