フィルターのクリア

Matlab in Visual Studio Code Linux - where to start?

23 ビュー (過去 30 日間)
Paul Zerr
Paul Zerr 2022 年 6 月 23 日
回答済み: Manas 2023 年 9 月 11 日
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 Center および File ExchangeStartup and Shutdown についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by