Why do I get:"Undefined function or variable 'pathtool'."

I moved from 2015b to 2017b and at startup a lot of directories in the path are not recognized. Some of them I did not even know I had in the path :
/Applications/MATLAB_R2017b.app/toolbox/matlab/external/engines/python Warning: Name is nonexistent or not a directory:
I guess the default matlab home directory is no longer in /Users/mysuername/Documents/matlab. When I try to fix this by clicking on 'Set Path' in the 'HOME' tab of the main Matlab window the response is and error message "Undefined function or variable 'pathtool'."

回答 (1 件)

Jan
Jan 2018 年 1 月 25 日
編集済み: Jan 2018 年 1 月 25 日

11 投票

Something went wrong. If even the built-in pathtool cannot be found, the installation of R2017b failed. A re-installation is the first idea. The command restoredefaultpath might help also, but this should run after the installation already.

5 件のコメント

Ronald Ouwerkerk
Ronald Ouwerkerk 2018 年 1 月 25 日
Thanks, restoredefaultpath did the trick. I then only had to add my ....Documents/matlab with subfolders to the path
Hamid
Hamid 2018 年 5 月 16 日
restoredefaultpath worked for me too!
Sivateja Maturu
Sivateja Maturu 2019 年 5 月 17 日
restoredefaultpath worked for me too! Thanks
Eric Bondzie
Eric Bondzie 2019 年 5 月 23 日
restoredefaultpath worked for me too. Thanks alot
marco velayarce
marco velayarce 2020 年 3 月 17 日
thanks!,

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

カテゴリ

ヘルプ センター および File ExchangeStartup and Shutdown についてさらに検索

製品

質問済み:

2018 年 1 月 24 日

コメント済み:

2020 年 3 月 17 日

Community Treasure Hunt

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

Start Hunting!

Translated by