JAGS 3.4 not recognised as command in MATLAB Win10

7 ビュー (過去 30 日間)
Max Lovell
Max Lovell 2021 年 8 月 31 日
コメント済み: Yongjian Feng 2021 年 9 月 1 日
I am currently trying to run the following package: https://github.com/metacoglab/HMeta-d which, according to the listed wiki requires JAGS 3.4 to run in MATLAB. I have previously gotten this to work on a Mac although need it to run on my PC running Windows 10 now.
When attempting to run the main function I am met with the following error:
Error using matjags (line 282)
Error from dos environment: 'jags' is not recognized as an internal or external command, operable program or batch file.
Going into the program files, I notice that the jags-terminal states the following:
Loading module: basemod: The specified module could not be found.
Loading module: bugs: The specified module could not be found.
Although I can find these modules in the relevant folder.
Does anyone know how to fix this? I have found the same error occurs when running JAGS 4.3 so I don't believe the version is the issue, and as it worked on a Mac before, neither is the MATLAB code. Perhaps windows is blocking access to the program?
Thanks

採用された回答

Yongjian Feng
Yongjian Feng 2021 年 8 月 31 日
It seems like an issue of the PATH env var? Try to set the PATH env var to point to those folders?
  2 件のコメント
Max Lovell
Max Lovell 2021 年 9 月 1 日
Thanks very much Yongjian, that worked.
I had to add:
C:\Program Files\JAGS\JAGS-3.4.0\x64\bin
to the path env. note using the i863 folder doesn't work.
Cheers
Yongjian Feng
Yongjian Feng 2021 年 9 月 1 日
Accept the answer please if it works for you. Thanks.

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeStartup and Shutdown についてさらに検索

製品


リリース

R2021a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by