有没有一种方法可以从Matlab的命令窗口安装工具箱? [英] Is there a way to install a toolbox from Matlab's command windows?

查看:87
本文介绍了有没有一种方法可以从Matlab的命令窗口安装工具箱?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在高性能计算机(HPC)上使用matlab.但是他们没有我需要的工具箱.我需要安装它.是否可以在本地通过matlab脚本安装工具箱?

I am using matlab on a high performance computer (HPC). But they don't have a toolbox I need. I need to install it . Is it possible that I install a toolbox via matlab script locally?

推荐答案

是的,请参阅Matlab的

Yes, look at Matlab's addpath, genpath and savepath functions.

在命令行中使用addpath(genpath(...)),然后使用savepath将其永久(全局)添加到路径中.否则,您可以在主脚本的开始处添加addpath(genpath(...)),以确保始终为相关会话加载该工具箱,而无需向该路径永久添加其他用户可能需要的工具箱.

Either use addpath(genpath(...)) in the command line followed by savepath to permanently (and globally) add it to the path. Or else you could have addpath(genpath(...)) at the start of your main script to just make sure you always have that toolbox loaded for relevant sessions without permanently adding a toolbox that other users might nit need to the path.

哦,等等,您是否正在询问是否可以安装软件包仓库中根本没有的工具箱?在那种情况下,我不这么认为.

Oh wait, are you asking if you can install a toolbox you don't have at all like from a package repository? In that case I don't think so.

这篇关于有没有一种方法可以从Matlab的命令窗口安装工具箱?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆