フィルターのクリア

MATLAB won't run a code even when in directory containing the code

16 ビュー (過去 30 日間)
Paul Safier
Paul Safier 2023 年 7 月 27 日
コメント済み: Raymond Norris 2023 年 7 月 31 日
I try to run a code initially from my home directory. Matlab states that the code exists in a specific folder and I should navigate to that folder OR add that folder to my path. Neither of these options works.
The permissions of the code in the folder is set to execute. As a test, I can run the code from the Linux prompt and it will execute (but of course fail because it's a Matlab code not a Linux executable). I just do this to prove executable status...
Images show the output. Any idea why Matlab would not run a code that is set to executable?
  5 件のコメント
Paul Safier
Paul Safier 2023 年 7 月 27 日
No, I cannot.
Paul Safier
Paul Safier 2023 年 7 月 27 日
@Cris LaPierre But I can execute any of them at the Linux prompt, so they are executable via Linux...

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

採用された回答

Walter Roberson
Walter Roberson 2023 年 7 月 27 日
generateNetbatchProfile is not a Mathworks-supplied function -- at least not that I can find documented or in any toolbox that I have installed. (I can't rule out something undocumented in Parallel Server)
I suspect that it might have been installed by other forces outside of Mathworks.
As such, you might need to
rehash toolboxcache
because MATLAB will normally ignore anything dropped into the toolbox directories that does not go through the regular installers.
  4 件のコメント
Paul Safier
Paul Safier 2023 年 7 月 31 日
@Raymond Norris. Thanks for the extra info. Yes, I see the user guide now; oops. :)
Raymond Norris
Raymond Norris 2023 年 7 月 31 日

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

その他の回答 (0 件)

カテゴリ

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

製品


リリース

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by