为VScode 配置Matlab运行环境(插件Matlab runner)

本文指导如何在Visual Studio Code (VScode) 中安装和配置Matlab Runner插件,以实现无缝运行Matlab代码。首先,在扩展商店搜索并下载Matlab Runner。然后,在设置中指定Matlab的路径和临时文件路径。设置完成后,选择要运行的代码,通过'Matlab: Run Selection'命令执行。首次执行会启动新的Matlab终端,后续则会快速运行。使用'Matlab: Run File'可运行整个文件,记得保存以查看输出结果。
摘要由CSDN通过智能技术生成

在拓展中搜索Matlab runner 并下载

下载完成后我们进行配置
插件首页的配置方法如下

Setup

  1. In settings, find 'matlab-runner.matlabPath' and set it to the location of the matlab executable. For example (mac): '/Applications/MATLAB_R2017b/bin/matlab'
  2. Create an empty matlab file ('something'.m) and save it
  3. In settings, find 'matlab-runner.tempFilePath' and set it to the location of the file you just created. For example (mac): '/Users/username/Documents/temp.m'
  4. The setting 'matlab-runner.clearPastRuns' is a true o
  • 0
    点赞
  • 6
    收藏
    觉得还不错? 一键收藏
  • 2
    评论
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值