Error while running matlab script from Linux terminal

29 ビュー (過去 30 日間)
Faisal
Faisal 2022 年 9 月 23 日
回答済み: Jan 2022 年 9 月 23 日
Hi everyone. When I run my script in matlab, it works fine. But, when I try to run my matlab script from terminal with the command:
$ matlab -nodesktop -nosplash -r 'Complete_code; exit'
it gives message in the terminal:
< M A T L A B (R) >
Copyright 1984-2022 The MathWorks, Inc.
R2022a Update 5 (9.12.0.2039608) 64-bit (glnxa64)
August 12, 2022
To get started, type doc.
For product information, visit www.mathworks.com.
Unrecognized function or variable 'Complete_code'.
How should I solve this problem?

採用された回答

Jan
Jan 2022 年 9 月 23 日
Is this a script or function? Obviously it is not included in the PATH. So either change the current path or add the folder to the path permanently.

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeManage Products についてさらに検索

タグ

製品


リリース

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by