Questions tagged [matlab]

MATLAB is a high-level language and interactive programming environment for numerical computation and visualization developed by MathWorks.

MATLAB is a high-level language and interactive programming environment for numerical computation and visualization developed by MathWorks. MATLAB can be used when performing tasks such as signal processing and communications, image and video processing, computational finance, and computational biology. It is the foundation for a number of other tools, including Simulink and various toolboxes that extend its core capabilities.

Some informative links that show up quite often in answers:

21 questions
19
votes
2 answers

Async execution in org babel

Is there a good general customization of org-babel to run asynchronously? Recently I plan to use MATLAB via org-babel, but I would like it in an async manner, since some calculations do take time. I do not wish to customize ob-matlab only. This is…
diadochos
  • 611
  • 5
  • 13
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
9
votes
1 answer

How to automatically run inferior process when loading major mode for the first time?

Let's say we are working with Python (or Matlab) with company. Without an inferior process company messages that Completion needs an inferior Python process running However, the obvious solution to automatically run an inferior process (add-hook…
Pushpendre
  • 351
  • 2
  • 7
4
votes
1 answer

No graphic output for MATLAB src block in org-mode

In an org file, if I include a MATLAB src block that has a graphic output (a figure is plotted there), for example, the following src block: #+begin_src matlab :session :file tst.png :results graphics imagesc(rand(100)) #+END_SRC it won't be…
Roxana
  • 43
  • 3
2
votes
1 answer

Cannot create org-babel matlab source block with vector input arguments

I want to create a re-usable matlab org-babel source block vectsb (say), which takes two vectors from a call statement, performs some operations with them, and returns the result in the call statement. A MWE is as follows #+NAME: vectsb #+begin_src…
Ajned
  • 672
  • 4
  • 19
2
votes
1 answer

Show breakpoints when debugging Matlab

I am using matlab-emacs to debug a matlab script from inside of emacs with GUD. Everything seems to be working as expected except that I don't see any breakpoint indicators in the fringe. This is important to me for two reasons: It is nice to…
nispio
  • 8,175
  • 2
  • 35
  • 73
2
votes
4 answers

Compile Matlab Code

I am new to gnu Emacs and have a question. I created an M file to run in Matlab and I got it working fine. My question is, is there a way to compile my code in the Emacs editor or test out my program? I tried the to use the "make" command and it…
Jack
  • 121
  • 1
1
vote
1 answer

completion and goto-function in matlab-mode

I've been working with matlab-mode and matlab-shell for the last few days, and I'm really digging it so far. The only two things I can't get to work properly are completion - neither in shell, nor in .m files - and jumping to function definitions,…
1
vote
1 answer

org-babel's matlab (session) output is malformed

I'm trying to evaluate some Matlab code using org-babel in a session: #+BEGIN_SRC matlab :session :results output a = 1:10; b = a + 3 c = a - 3 #+END_SRC And following the org-babel documentation, this is the output I expect: b = 4 5 …
Karthik
  • 31
  • 3
1
vote
1 answer

Problem with use-package and matlab-mode - cannot load

I am trying to use the matlab-mode package with use-package. in my init.el: (use-package matlab-mode :ensure t :config (add-to-list 'auto-mode-alist '("\\.m\\'" . matlab-mode)) (setq matlab-indent-function t) (setq…
vvel
  • 11
  • 1
1
vote
0 answers

Matlab-shell autocompletion error

For some reason emacs matlab-shell is returning an error when running autocompletion. The debugging output for a completion of "load Da[TAB]" is shown below. The closest thread that I've found in sourceforge was this and their solution did not work.…
Ajned
  • 672
  • 4
  • 19
1
vote
1 answer

Getting Emacs lsp-mode to work with this matlab-langserver

I am trying to get this Matlab language server to work with lsp-mode. Following the instructions in lsp-mode's github page, I inserted the following in my init.el: (use-package lsp-mode :ensure t :commands (lsp lsp-deferred) :config (setq…
Karthik
  • 31
  • 3
1
vote
0 answers

Show history of command in MATLAB shell

I used the command matlab-shell for opening a new MATLAB instance inside emacs. How can I have a functionality similar to the of MATLAB which allows to see at once the most recent commands and to navigate through them? I would like to have something…
Nisba
  • 895
  • 8
  • 19
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
3 answers

Adding comment out for matlab-mode

How can I apply M-; to comments out blocks in matlab-mode? Currently it only adds comments at the end of line. Thanks!
Yuval Atzmon
  • 175
  • 7
1
2