开发者

Calling shell command in Matlab

I recently installed a software package called GPSToolkit on my Windows machine. The bin directory was automaticall开发者_JAVA百科y added to my PATH and I can execute the GPS functions from any directory. However, when I attempt to make a system call within Matlab none of the functions in the GPS toolkit can be found. The specific error message reads "'rinexpvt' is not recognized as an internal or external command, operable program or batch file."

Does Matlab have a different set of environmental variables? Maybe the operating system considers Matlab to be a different "User"? Any ideas would be greatly appreciated! Thanks in advance --Dom.


  • You can specify the fully qualified path in your system call
  • You can check and modify the system path with getenv() and setenv()

check http://www.mathworks.com/help/techdoc/ref/setenv.html for examples

setenv('PATH', [getenv('PATH') '; C:\the\path\to\your\tool']);
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜