Matlab in Visual Studio Code Linux - where to start?

28 次查看(过去 30 天)
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.

回答(1 个)

Manas
Manas 2023-9-11
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!

类别

Help CenterFile Exchange 中查找有关 Startup and Shutdown 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by