Questions tagged [octave]

19 questions
9
votes
2 answers

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 commented lines, the comment character is carried…
osolmaz
  • 435
  • 3
  • 13
3
votes
1 answer

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 already been typed. For example, if I've typed out…
user2699
  • 2,181
  • 16
  • 32
1
vote
0 answers

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 matrix in one Octave source block running a session…
Tobias
  • 32,569
  • 1
  • 34
  • 75
1
vote
2 answers

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 in matlab, but it does not work. I am wondering how…
tinlyx
  • 1,276
  • 1
  • 12
  • 27
1
vote
1 answer

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 by having a file testprintf.m with just that single…
Mario
  • 141
  • 6
1
vote
0 answers

(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 cleared. So far so good, this is how it is…
Juang Dse
  • 11
  • 2
1
vote
0 answers

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 such file or directory, octave Following the…
1
vote
2 answers

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
  • 507
  • 4
  • 13
1
vote
1 answer

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 sublime text, while this is emacs. On the right side…
1
vote
1 answer

[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 problem is that Octave doesn't seem to be…
Wilson
  • 25
  • 4
0
votes
0 answers

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 indentation. I'm searching for the first left…
0
votes
1 answer

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 for v21 and higher (I have v28). However, simply…
point618
  • 233
  • 1
  • 8
0
votes
1 answer

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 waves. ## ## @end deftypefn If the description is…
0
votes
2 answers

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 = (sym) x + 1 ─────────── ________ ╱ 2 …
Sibi
  • 3,603
  • 2
  • 22
  • 35
0
votes
1 answer

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 org-mode table from a matlab array a as…
tinlyx
  • 1,276
  • 1
  • 12
  • 27
1
2