Azzera filtri
Azzera filtri

Matlab in Visual Studio Code Linux - where to start?

23 visualizzazioni (ultimi 30 giorni)
Paul Zerr
Paul Zerr il 23 Giu 2022
Risposto: Manas il 11 Set 2023
I'm looking for a tutorial that explains step by step how to set up VSC as a matlab IDE in linux. I realize that this is a very basic question, but I'm struggling to get things going. To clarify: I have matlab installed, I just want to use VSC to edit and execute code (with the purpose of using Github Copilot).
I have done:
  • installed VSC, Matlab extension pack
  • set mlint and matlab path in settings.json
  • installed Octave debugger (VSC asked me to install a debugger, this was the only one that came up for "matlab" query)
Running a script (something simple, like a=1, disp(a)) works in the sense that I see some activity, the little bar at the top with the buttons including a "pause" button appears, the bottom bar flashes orange briefly, but there is no actual output in console, terminal or "output". No error is being thrown, even when I induce syntax errors. In other words, the script appears to run, but does absolutely nothing.
I tried to do everything running via Octave, same thing.
I'm just not sure where to even begin solving this. I'm using Matlab 2021b.

Risposte (1)

Manas
Manas il 11 Set 2023
Hi Paul Zerr,
I understand that you are looking for steps on how to run MATLAB code in Visual Studio Code on a Linux operating system.
We have a Visual Studio Code extension for MATLAB that supports syntax highlighting, code snippets and more.
The extension can be found in the Visual Studio Marketplace: https://marketplace.visualstudio.com/items?itemName=MathWorks.language-matlab
Hope this helps!

Categorie

Scopri di più su Startup and Shutdown in Help Center e File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by