当前位置:网站首页>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
边栏推荐
- mui. Plusready does not take effect
- Common net HP UNIX system FTP server listfiles returns null solution.
- [microservices] (x) -- Unified gateway
- The art of concurrent programming (3): an in-depth understanding of the principle of synchronized
- MySQL is completely uninstalled and MySQL service is cleaned up
- A hundred dollars for a hundred chickens
- 什么是软件验收测试,第三方软件检测机构进行验收测试有什么好处?
- Variable definition and use
- CRF based medical entity recognition baseline
- ROS series (I): rapid installation of ROS
猜你喜欢
![[microservices] (x) -- Unified gateway](/img/f8/0c4516a802086cbe4031183b27a775.jpg)
[microservices] (x) -- Unified gateway
![[AI vision · quick review of robot papers today, issue 28] wed, 1 Dec 2021](/img/c8/90d020d192fe791c4dec5f4161e597.png)
[AI vision · quick review of robot papers today, issue 28] wed, 1 Dec 2021
![[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

Basic usage of Google colab (I)

对象和类的概念

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

What if you encounter symbols you don't know in mathematical formulas

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

【ICCV 2019】MAP-VAE:Multi-Angle Point Cloud-VAE: Unsupervised Feature Learning for 3D Point Clouds..

Paddlepaddle model to onnx
随机推荐
A function second kill 2sum 3sum 4sum problem
Deep learning notes (II) -- principle and implementation of activation function
On the principle of concurrent programming and the art of notify / Park
Design and implementation of redis (1): understand data structures and objects
Common auxiliary classes
創下國產手機在海外市場銷量最高紀錄的小米,重新關注國內市場
ROS series (IV): ROS communication mechanism series (3): parameter server
ROS series (II): ROS quick experience, taking HelloWorld program as an example
Seekbar custom style details
对象和类的概念
Basic usage of Google colab (I)
ERROR: Could not find a version that satisfies the requirement win32gui
51 single chip microcomputer: D / a digital to analog conversion experiment
RuntimeError: output with shape [4, 1, 512, 512] doesn‘t match the broadcast shape[4, 4, 512, 512]
秒杀所有区间相关问题
What if you encounter symbols you don't know in mathematical formulas
Now is the best time to empower industrial visual inspection with AI
Let matlab2018b support the mex configuration of vs2019
什么是软件验收测试,第三方软件检测机构进行验收测试有什么好处?
The super large image labels in remote sensing data set are cut into specified sizes and saved into coco data set - target detection