当前位置:网站首页>VSCode配置之Matlab极简配置
VSCode配置之Matlab极简配置
2022-04-23 03:50:00 【qq_37172182】
二次规划问题的优化方案(QP问题)通常需要matlab环境的支持,为了编程的方便,满足All In VSCode, 尝试使用VSCode配置Matlab,方便代码的阅读和理解,支持一键运行Matlab代码,自动补全等功能,尝试进行了这一操作:Matlab极简配置。
1、插件准备:

Matlab
Matlab Extension Pack
Matlab Snippets
matlab-formatter
2、settings配置:
// matlab setting
"matlab.linterEncoding": "gb2312",
"notebook.lineNumbers": "on",
"matlab.matlabpath": "D:\\path\\to\\Matlab\\bin\\matlab.exe",
"matlab.mlintpath": "D:\\path\\to\\Matlab\\bin\\bin\\win64\\mlint.exe",
"code-runner.executorMap": {
"matlab": "cd $dir && matlab -nosplash -nodesktop -r $fileNameWithoutExt",
}
3、结果演示:

4、问题与不足:
1)虽然VSCode支持Matlab运行,添加了Matlab编译环境,但运行大型程序并没有Matlab本身运行效率高,容易产生卡顿现象,因此VSCode Matlab仅仅用作编辑器,用于代码的阅读和理解;
2)VSCode Matlab不具备调试能力,只能借助Octave Debugger进行简单debug;
3)Matlab版本与python环境有一定的冲突,最好的配置方式安装独立的虚拟环境(conda env)用于Matlab工程(虽然有时版本不一致也可以用,但容易出现不可预测的情况)
版权声明
本文为[qq_37172182]所创,转载请带上原文链接,感谢
https://blog.csdn.net/qq_37172182/article/details/123977599
边栏推荐
- If statement format flow
- The art of concurrent programming (3): an in-depth understanding of the principle of synchronized
- The art of concurrent programming (5): the use of reentrantlock
- The art of concurrent programming (6): explain the principle of reentrantlock in detail
- 中国移动日赚2.85亿很高?其实是5G难带来更多利润,那么钱去哪里了?
- On the principle of concurrent programming and the art of notify / Park
- The whole process of connecting the newly created unbutu system virtual machine with xshell and xftp
- VS Studio 修改C語言scanf等報錯
- The art of concurrent programming (2): synchronized usage scenarios
- 【NeurIPS 2019】Self-Supervised Deep Learning on Point Clouds by Reconstructing Space
猜你喜欢

Mechanical design knowledge point planning

The whole process of connecting the newly created unbutu system virtual machine with xshell and xftp
![[AI vision · quick review of NLP natural language processing papers today, issue 29] Mon, 14 Feb 2022](/img/34/1db76ac50888196515927fe51b2738.png)
[AI vision · quick review of NLP natural language processing papers today, issue 29] Mon, 14 Feb 2022

What if win10 doesn't have a local group policy?

Cause analysis of incorrect time of AI traffic statistics of Dahua Equipment Development Bank

Common auxiliary classes

Xiaomi, which has set the highest sales record of domestic mobile phones in overseas markets, paid renewed attention to the domestic market

On the principle of concurrent programming and the art of notify / Park

Vscode download and installation + running C language

使用大华设备开发行AI人流量统计出现时间不正确的原因分析
随机推荐
Activity supports multi window display
[AI vision · quick review of robot papers today, issue 29] Mon, 14 Feb 2022
Does China Mobile earn 285 million a day? In fact, 5g is difficult to bring more profits, so where is the money?
Use the thread factory to set the thread name in the thread pool
Wechat applet cloud database value assignment to array error
Design and implementation of redis (5): master-slave replication strategy and optimization
什么是软件验收测试,第三方软件检测机构进行验收测试有什么好处?
Design and implementation of redis (1): understand data structures and objects
Writing latex with vscode - the latest tutorial 2022 / 4 / 17
中国移动日赚2.85亿很高?其实是5G难带来更多利润,那么钱去哪里了?
The content of the website is prohibited from copying, pasting and saving as JS code
[AI vision · quick review of NLP natural language processing papers today, issue 29] Mon, 14 Feb 2022
伦敦银最新价格走势图与买卖点
列表、元组、字典和集合的区别
AI CC 2019 installation tutorial under win10 (super detailed - small white version)
Idea debug debugging tutorial
基于PHP的代步工具购物商城
常用的辅助类
vscode删除卸载残余
Leetcode punch in diary day 01