当前位置:网站首页>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
边栏推荐
- RuntimeError: output with shape [4, 1, 512, 512] doesn‘t match the broadcast shape[4, 4, 512, 512]
- 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
- Leetcode punch in diary day 01
- Design and implementation of redis (1): understand data structures and objects
- Openvino only supports Intel CPUs of generation 6 and above
- How Zotero quotes in word jump to references / hyperlink
- The art of concurrent programming (5): the use of reentrantlock
- Xiaomi, which has set the highest sales record of domestic mobile phones in overseas markets, paid renewed attention to the domestic market
- Wechat applet cloud database value assignment to array error
- [microservices] (x) -- Unified gateway
猜你喜欢
51 single chip microcomputer: D / a digital to analog conversion experiment
Instructions for fastmock
[AI vision · quick review of robot papers today, issue 29] Mon, 14 Feb 2022
Summary of knowledge map (3)
Now is the best time to empower industrial visual inspection with AI
Cause analysis of incorrect time of AI traffic statistics of Dahua Equipment Development Bank
Process seven state transition diagram
Installation and configuration of clion under win10
Use of rotary selector wheelpicker
[latex] formula group
随机推荐
STM32 advanced timer com event
深度學習筆記(二)——激活函數原理與實現
MySQL zip installation tutorial
ROS series (IV): ROS communication mechanism series (2): Service Communication
[AI vision · quick review of robot papers today, issue 28] wed, 1 Dec 2021
Design and implementation of redis (5): master-slave replication strategy and optimization
According to the category information and coordinate information of the XML file, the category area corresponding to the image is pulled out and stored in the folder.
Vs studio modifies C language scanf and other errors
Detailed explanation on the use of annotation tool via (VGg image annotator) in mask RCNN
Deep learning notes (II) -- principle and implementation of activation function
RuntimeError: output with shape [4, 1, 512, 512] doesn‘t match the broadcast shape[4, 4, 512, 512]
[microservices] (x) -- Unified gateway
CRF based medical entity recognition baseline
The great gods in acmer like mathematics very much
MySQL is completely uninstalled and MySQL service is cleaned up
【NeurIPS 2019】Self-Supervised Deep Learning on Point Clouds by Reconstructing Space
Design and implementation of redis (2): how to handle expired keys
Vscode download and installation + running C language
Now is the best time to empower industrial visual inspection with AI
列表、元组、字典和集合的区别