如何检查Matlab中是否安装了Matlab工具箱 [英] How to check if matlab toolbox installed in matlab

查看:1420
本文介绍了如何检查Matlab中是否安装了Matlab工具箱的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在研究Matlab R2011a学生版.我想运行Matlab提供的一些演示,这些演示需要一些工具箱,例如Embedded Coder和EDA Simulator Link.

I am working on Matlab R2011a student edition. I want to run some demos provided in Matlab which require some toolbox like Embedded Coder and EDA Simulator Link.

我想检查这些工具箱是否已安装在当前版本的matlab中,如果是,如何检查许可证是否有效.

I want to check if those toolboxes are installed in my current version of matlab and if yes how can I check if the licenses are valid.

对此链接的引用对我没有帮助: 如何检查已安装的MATLAB工具箱,因为我至少需要使用命令 ver control 来获得控制系统工具箱"的控制"状态之类的工具箱的简称.

The reference to this link didn't help me: How would one check for installed MATLAB toolboxes in a script/function? because I need at least the short name of those toolboxes like "control" states for "Control System Toolbox" by using the command ver control.

任何建议...

推荐答案

要检查工具箱是否已安装,请使用

To check that the toolbox is installed, use

v = ver;
any(strcmp(toolboxName, {v.Name}))

其中toolboxName是要检查的工具箱的名称.

where toolboxName is the name of the toolbox you want to check.

要检查许可证是否有效,请使用

To check that the licence is valid, use

license('test', toolboxName)

这篇关于如何检查Matlab中是否安装了Matlab工具箱的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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