开发者

starting Matlab script from command line doesn't find DLL on the path

开发者 https://www.devze.com 2023-01-08 12:14 出处:网络
I have a Matlab script that requires a function in a DLL, and calls addpath to put it\'s location on the path. This works fine, but when I try to invoke the same script on the command line with matlab

I have a Matlab script that requires a function in a DLL, and calls addpath to put it's location on the path. This works fine, but when I try to invoke the same script on the command line with matlab -r "scriptname" it errors out saying that method is undefined. Is there something different happening when I'm starting from the command line vs loading up the GUI no开发者_JAVA百科rmally?


turns out both 64-bit and 32-bit versions of matlab were installed, and the first one in the path was the 64-bit, whereas I needed the 32-bit for things to work.

0

精彩评论

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