Questions tagged [octave]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
0answers
18 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
1answer
25 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
2answers
48 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
1answer
22 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
0answers
22 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
1answer
32 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
0answers
30 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
1answer
60 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
0answers
116 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
2answers
67 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
1answer
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
1answer
590 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
1answer
788 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 ...
8
votes
2answers
1k 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
1answer
500 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 ...