MATLAB Answers

Problem to load a path

39 ビュー (過去 30 日間)
Hugo Mendonça
Hugo Mendonça 2020 年 1 月 24 日
コメント済み: Hugo Mendonça 2020 年 1 月 28 日
Hi, everyone!
I have a little issue with my Matlab. I run the release 2019b in OsX.
The problem is every time I start it, all of my paths previously saved is erased because Matlab cannot recognize a character in the path.
E.g.:
Warning: Name is nonexistent or not a directory: /Users/PolitXcnica ...
the X represents what is in the system "é".
As a result, I always have to load all of the paths when I start Matlab.
PS: I cannot change the name "Politécnica".
I appreciate any help.
  2 件のコメント
Hugo Mendonça
Hugo Mendonça 2020 年 1 月 27 日
Thank you, Jakob.
As you said, it is not a pretty solution, but it avoids loading manually every time userpath.
Regards.

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

回答 (1 件)

Cam Salzberger
Cam Salzberger 2020 年 1 月 24 日
I haven't seen this before, though it looks similar to this issue with opening files. If I were to guess at a solution...
This looks like it's your userpath that gets automatically added to the top of the MATLAB Search Path upon startup. If you don't store files there that need to be available on the search path, you can just remove it:
userpath('clear')
Alternatively, you could set up a different folder somewhere without a non-ASCII character on the full path to serve as your user path, and set it to use that in the future:
userpath('/some/other/folder')
-Cam
  5 件のコメント
Hugo Mendonça
Hugo Mendonça 2020 年 1 月 28 日
Thank you again, Cam!
I did something similarly. I've created a shortcut with Jakob's suggestion, so with a only click I have it.
Regards,
Hugo

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

製品


リリース

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by