Questions tagged [octave]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
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 ...
user9605929's user avatar
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 ...
point618's user avatar
  • 233
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 ...
Tommi Rimpiläinen's user avatar
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 = (...
Sibi's user avatar
  • 3,623
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 ...
Tobias's user avatar
  • 32.6k
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 ...
tinlyx's user avatar
  • 1,280
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 ...
tinlyx's user avatar
  • 1,280
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; ...
tinlyx's user avatar
  • 1,280
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 ...
tinlyx's user avatar
  • 1,280
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 ...
Mario's user avatar
  • 141
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 ...
Juang Dse's user avatar
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 ...
chr's user avatar
  • 77
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 ...
Anamika Mahankakdi's user avatar
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?
Daniel Hitzel's user avatar
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 ...
GalacticDessert's user avatar
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 ...
Josh Pinto's user avatar
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 ...
Wilson's user avatar
  • 25
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 ...
osolmaz's user avatar
  • 435
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 ...
user2699's user avatar
  • 2,181