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개)

Rik
Rik 2020년 10월 6일

0 개 추천

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

카테고리

도움말 센터 및 File Exchange에서 Startup and Shutdown에 대해 자세히 알아보기

제품

릴리스

R2018b

질문:

2020년 10월 6일

답변:

Rik
2020년 10월 6일

Community Treasure Hunt

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

Start Hunting!

Translated by