Questions tagged [octave]
The octave tag has no usage guidance.
19
questions
0
votes
0
answers
31
views
How do I make single quote function like a double quote in octave mode?
I'm using octave mode for matlab which works great mostly. However, now I've run into a difference in quoting mechanisms between matlab and octave which makes emacs misinterpret the code and mess up ...
0
votes
1
answer
101
views
How to load octave-mode
I'd like to use the octave mode for emacs. There is no octave-mode package in MELPA, but EmacsWiki (https://www.emacswiki.org/emacs/OctaveMode) and the emacs manual seem to suggest that it is built-in ...
0
votes
1
answer
30
views
TexInfo blocks Octave mode
My Octave scripts start with descriptions, like
## -*- texinfo -*-
## @deftypefn {} {} @var{planesource}
##
## This class implements an abstract planar structure
## that functions as a source of ...
0
votes
2
answers
302
views
Org mode + Gnu Octave session
I interact with the Gnu Octave's inferior mode and everything seems to be working fine there:
octave> pkg load symbolic
octave> syms x
g = (x+1)/sqrt(x^2 - 1)
simplify(diff(g,x))
octave> g = (...
1
vote
0
answers
47
views
Org source block for Octave session fails with large matrices
Sometimes I have to analyze quite large matrices with octave as part of a documented reproducible work.
Org files with Octave source blocks are the ideal format for that purpose.
One defines the ...
0
votes
1
answer
172
views
How to export an octave/matlab array for use by python in org-mode?
I am trying to pass the value of an octave/matlab array into a python code block in org-mode. But I can't get the python-end to receive the value.
With the answers in this question, I can generate an ...
1
vote
2
answers
288
views
How to output an octave array as a org-mode table?
I am trying to output a matlab/octave array as an org-mode table. So for an array/matrix like
a =[ 1 2; 3 4; 5 6];
I'd like to have a 3 by 2 org-mode table. I tried to just echo the array a as if ...
0
votes
1
answer
424
views
How do octave functions work in org-mode code blocks?
I tried to define and use a simple matlab/octave function within an org-mode code block as shown follows.
#+name: test-octave-function
#+begin_src octave
function s = my_sum(x, y)
s = x + y;
...
0
votes
0
answers
356
views
org-babel-execute-src-block: No org-babel-execute function for octave!
I tried to execute an org-mode code block in octave, using the example in this SO question:
#+name: factor
#+begin_src octave :session *octave* :exports code :results silent
factor=4;
#+end_src
But ...
1
vote
1
answer
119
views
Why does printf not work in Emacs octave-mode?
I've recently started using Emacs octave-mode and discovered that when using printf Emacs seems to block and I have to kill the execution of an Octave script with C-g.
I can reproduce that problem ...
1
vote
0
answers
43
views
(octave-mode) highlighted region remains highlighted after command
I am in octave-mode running an inferior octave shell. Now I mark a region and issue 'octave-send-region'. All commands are executed as expected and echoed in the shell buffer, and the highlighting is ...
0
votes
1
answer
125
views
Make octave-mode recognise the MATLAB command spmd
The parallel toolbox for MATLAB has a command, spmd (https://se.mathworks.com/help/parallel-computing/spmd.html), that octave-mode does not recognize. Note: I know how to make octave-mode recognize ...
1
vote
0
answers
253
views
Emacs doesn't detect octave (windows)
I am new to Emacs and trying to set up octave so that it runs inside Emacs. I followed the instructions on the official website but it didn't work as Emacs threw a error
searching for program: no ...
1
vote
2
answers
81
views
Octave-mode disable octave-sync-function-file-names on save
Is there a variable I can set to disable the call of octave-sync-function-file-names after saving a file?
1
vote
1
answer
1k
views
Better syntax highlighting in MATLAB/Octave
I'm using emacs for editing a bunch of matlab files. The only gripe that I have is that the syntax highlighting provided by octave-mode is pretty poor.
This is the syntax highlighting provided by ...
0
votes
1
answer
752
views
When MATLAB mode is installed opening an m file gives a file mode specification error
I have installed the matlab-mode-20160902.459 package from MELPA and whenever I open an m file (i.e., a file with the file extension .m which is the file extension of most MATLAB/GNU Octave scripts) I ...
1
vote
1
answer
975
views
[OSX]Octave not quite working within Emacs
it is my first time asking question here. I am a college sophomore. I am taking a Matlab course this semester and find Octave an alternative so I get that installed through Homebrew in my Mac.
The ...
9
votes
2
answers
2k
views
Commented lines shoot off to column 32 in octave-mode
I am using the octave major mode for editing my MATLAB code, since it is more convenient than the unsupported MATLAB packages for emacs on the internet.
One downside is whenever I try to auto-indent ...
3
votes
1
answer
594
views
How to go through command history based on what's been typed (matlab style)
Using examples from octave mode to explain this, but it would be useful in other places as well.
When going through the command history it would be nice to only display entries that match what's ...