clean all paths except factory ones (toolboxes)

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

Antworten (1)

Rik
Rik am 6 Okt. 2020

0 Stimmen

Appart from using restoredefaultpath, you might consider borrowing code from toggleToolbox to toggle the states of your path.

Kategorien

Mehr zu Startup and Shutdown finden Sie in Hilfe-Center und File Exchange

Produkte

Version

R2018b

Beantwortet:

Rik
am 6 Okt. 2020

Community Treasure Hunt

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

Start Hunting!

Translated by