当前位置:网站首页>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
边栏推荐
- 創下國產手機在海外市場銷量最高紀錄的小米,重新關注國內市場
- Definition, understanding and calculation of significant figures in numerical analysis
- The principle and solution of not allowing pasting in an English Network
- The art of concurrent programming (6): explain the principle of reentrantlock in detail
- Xiaomi, qui a établi le plus grand volume de ventes de téléphones portables domestiques sur le marché d'outre - mer, se concentre de nouveau sur le marché intérieur
- Cuda11 is installed perfectly in win10 X + pytorch 1.9 (blood flowing into the river) cuda. is_ Available() becomes true!
- If statement format flow
- Definition format of array
- ROS series (IV): ROS communication mechanism series (6): parameter server operation
- Solve the technical problems in seq2seq + attention machine translation
猜你喜欢
ROS series (4): ROS communication mechanism series (4): topic communication practice
Who will answer the question?
[AI vision · quick review of robot papers today, issue 29] Mon, 14 Feb 2022
[AI vision · quick review of NLP natural language processing papers today, issue 29] Mon, 14 Feb 2022
Paddlepaddle model to onnx
Process seven state transition diagram
The great gods in acmer like mathematics very much
网络原理 | TCP/IP中的连接管理机制 重要协议与核心机制
深度學習筆記(二)——激活函數原理與實現
Abstract classes, interfaces and common keywords
随机推荐
MySQL zip installation tutorial
標識符、關鍵字、數據類型
Instructions for fastmock
Vs studio modifies C language scanf and other errors
The art of concurrent programming (3): an in-depth understanding of the principle of synchronized
[microservices] (x) -- Unified gateway
知乎有问题,谁来解答?
基于PHP的代步工具购物商城
Oracle JDK vs OpenJDK
PolarMask is not in the models registry
Activity supports multi window display
Common auxiliary classes
ROS series (IV): ROS communication mechanism series (1): topic communication
Definition, understanding and calculation of significant figures in numerical analysis
变量、常量、运算符
Wechat applet cloud database value assignment to array error
Installation and configuration of MinGW under win10
Deep learning notes (II) -- principle and implementation of activation function
Design and implementation of redis (2): how to handle expired keys
Three types of cyclic structure