当前位置:网站首页>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
边栏推荐
- Leetcode punch in diary day 01
- you need to be root to perform this command
- Zotero6. Version 0 quicklook cannot be used / Chinese garbled code will not be displayed
- 创下国产手机在海外市场销量最高纪录的小米,重新关注国内市场
- [AI vision · quick review of robot papers today, issue 29] Mon, 14 Feb 2022
- Opencv4 QR code recognition test
- RuntimeError: output with shape [4, 1, 512, 512] doesn‘t match the broadcast shape[4, 4, 512, 512]
- RuntimeError: output with shape [4, 1, 512, 512] doesn‘t match the broadcast shape[4, 4, 512, 512]
- Why is it necessary to divide the variance by 255^2 when adding Gaussian noise using the imnoise function of MATLAB
- 基于PHP的代步工具购物商城
猜你喜欢
![[latex] formula group](/img/34/ba927517d902a505077388d9b875d1.png)
[latex] formula group

Download and configuration of idea

对象和类的概念
![[microservices] (x) -- Unified gateway](/img/f8/0c4516a802086cbe4031183b27a775.jpg)
[microservices] (x) -- Unified gateway

Basic usage of Google colab (I)
![[AI vision · quick review of today's sound acoustic papers issue 1] Thu, 14 APR 2022](/img/94/5fa8bf57dff45a1ba108edb46cf6c8.png)
[AI vision · quick review of today's sound acoustic papers issue 1] Thu, 14 APR 2022

ROS series (IV): ROS communication mechanism series (1): topic communication

Xshell、Xftp连接新创建的Unbutu系统虚拟机全流程

A sword is a sword. There is no difference between a wooden sword and a copper sword

一个函数秒杀2Sum 3Sum 4Sum问题
随机推荐
SQL learning record
Source code and update details of new instance segmentation network panet (path aggregation network for instance segmentation)
ROS series (IV): ROS communication mechanism series (1): topic communication
变量、常量、运算符
Win10 boot VMware virtual machine boot seconds blue screen problem perfect solution
Use of rotary selector wheelpicker
RuntimeError: output with shape [4, 1, 512, 512] doesn‘t match the broadcast shape[4, 4, 512, 512]
Writing latex with vscode - the latest tutorial 2022 / 4 / 17
Common net HP UNIX system FTP server listfiles returns null solution.
使用大华设备开发行AI人流量统计出现时间不正确的原因分析
ROS series (4): ROS communication mechanism series (4): topic communication practice
The principle and solution of not allowing pasting in an English Network
Installation and configuration of MinGW under win10
Mechanical design knowledge point planning
Cuda11 is installed perfectly in win10 X + pytorch 1.9 (blood flowing into the river) cuda. is_ Available() becomes true!
創下國產手機在海外市場銷量最高紀錄的小米,重新關注國內市場
ROS series (IV): ROS communication mechanism series (2): Service Communication
Using VBA interval to extract one column from another in Excel
Zotero6. Version 0 quicklook cannot be used / Chinese garbled code will not be displayed
Picture synthesis video