VSCode配置matlab编译环境
本文主要内容是在VSCode中搭建matlab运行环境的过程。
·
本文主要内容是在VSCode中搭建matlab运行环境的过程。
VSCode配置matlab编译环境
需要安装Matlab相关插件,并对setting.json文件进行配置。
setting.json文件的{}中加入如下配置代码:
/***********************************
* 下面为matlab编译环境配置
***********************************/
"matlab.mlintpath": "D:\\MATLAB\\bin\\win64\\mlint.exe",
"matlab.matlabpath": "D:\\MATLAB\\bin\\matlab.exe",
"matlab.linterEncoding": "gb2312",
"code-runner.executorMap": {
"matlab":"cd $dir && matlab -nosplash -nodesktop -r $fileNameWithoutExt",
},
"files.associations": {
"*.m":"matlab",
},
"code-runner.runInTerminal": true,
"[matlab]": {
"files.encoding": "gb2312",
},
"files.autoGuessEncoding": true,
"workbench.colorTheme": "One Dark Pro Darker",
"workbench.iconTheme": "vscode-icons",
"search.smartCase": true,
"editor.suggestSelection": "first",
"vsintellicode.modify.editor.suggestSelection": "automaticallyOverrodeDefaultValue",
"files.autoSave": "afterDelay",
"terminal.integrated.commandsToSkipShell": [
"language-julia.interrupt"
],
"julia.symbolCacheDownload": true,
"tabnine.experimentalAutoImports": true,
"vsicons.dontShowNewVersionMessage": true,
"editor.fontFamily": "Cascadia Code, 'Courier New', monospace",
"security.workspace.trust.enabled": false,
"editor.fontSize": 13,
需要注意 matlab.mlintpath 和 matlab.matlabpath 的地址是否能够和自己MATLAB安装后对应的子程序的地址相匹配。否则无法在VSCode中运行matlab代码。
魔乐社区(Modelers.cn) 是一个中立、公益的人工智能社区,提供人工智能工具、模型、数据的托管、展示与应用协同服务,为人工智能开发及爱好者搭建开放的学习交流平台。社区通过理事会方式运作,由全产业链共同建设、共同运营、共同享有,推动国产AI生态繁荣发展。
更多推荐



所有评论(0)