在MATLAB中找到已安装程序的路径? [英] Finding the path of installed program from MATLAB?

查看:365
本文介绍了在MATLAB中找到已安装程序的路径?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我可以从MATLAB命令行中找出特定程序的安装路径是什么吗? 还是可以找到已注册程序的路径(等效于Windows reg)?

Can I find out from the MATLAB command line what is the installation path of specific program? Or can I find the path for a registered program (Windows reg equivalent)?

推荐答案

调用 DOS/ bash命令which,例如

Call the DOS/bash command which, e.g.,

!which matlab
!which notepad

(或使用system代替!.)

似乎Windows中没有直接的等效项.我在尝试过的(Win XP)机器上安装了cygwin,命令成功.另外,请在 stackoverflow 和<一个href ="https://superuser.com/questions/49104/handy-tool-to-find-executable-program-location">超级用户.

It seems that there isn't a direct equivalent in Windows. I had cygwin installed on the (Win XP) machine I tried it on, and the command succeeded. Alternatively, take a look at these answers on stackoverflow and superuser.

这篇关于在MATLAB中找到已安装程序的路径?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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