Clear Filters
Clear Filters

Matlab in Visual Studio Code Linux - where to start?

23 views (last 30 days)
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.

Answers (1)

Manas
Manas on 11 Sep 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!

Categories

Find more on Startup and Shutdown in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!