Why do I receive a "command not found" error when I try to run my executable generated by MATLAB Compiler?

I tried to execute my program:
!hello
However, I received the following error:
/bin/bash: line 1: hello: command not found
Using LS or DIR I can see that the hello executable is present in the current directory.

 採用された回答

MathWorks Support Team
MathWorks Support Team 2022 年 12 月 14 日
編集済み: MathWorks Support Team 2022 年 12 月 22 日
Many UNIX systems are not setup to execute applications that are in your current working directory. To work around this, you can add "." to your PATH environment variable or do the following:
!./hello
 

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeMATLAB Compiler についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by