clean all paths except factory ones (toolboxes)

13 ビュー (過去 30 日間)
Jérôme Vinçonneau
Jérôme Vinçonneau 2020 年 10 月 6 日
回答済み: Rik 2020 年 10 月 6 日
Hello,
I would like to know if there is a way not to use the userpath in the PATH.
I use a matlab engine from a Qt application and then I add path. But I had troubles with one user that had a bad pathdef causing issues with simulink.
I would like to be robust to a badly defined user startup.
I see three options :
  • specify a good pathdef.m when runing the matlab engine (but how ?)
  • remove all paths except the one for simulink
  • specify only the required path
  1 件のコメント
Mario Malic
Mario Malic 2020 年 10 月 6 日
Check restoredefaultpath

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

回答 (1 件)

Rik
Rik 2020 年 10 月 6 日
Appart from using restoredefaultpath, you might consider borrowing code from toggleToolbox to toggle the states of your path.

カテゴリ

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

製品


リリース

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by