필터 지우기
필터 지우기

Warning: Unable to locate a personal folder for $documents\MATLAB

조회 수: 122 (최근 30일)
Derrick Early
Derrick Early 2015년 1월 8일
댓글: Image Analyst 2023년 5월 25일
How can I fix the following error?
Warning: Unable to locate a personal folder for $documents\MATLAB
Thank you, Derrick

채택된 답변

Image Analyst
Image Analyst 2015년 1월 8일
Does it mean the userpath? Try this:
userpath(newpath)
savepath;
userpath(newpath) sets the primary userpath folder to newpath. The newpath folder appears at the top of the search path immediately and at startup in future sessions. MATLAB removes the folder previously specified by userpath from the search path.
  댓글 수: 2
Jonathan Gadiel Ramírez Martínez
Hello, what do you mean by userpath?
Image Analyst
Image Analyst 2023년 5월 25일
help userpath
USERPATH User environment path. USERPATH returns a user-specific folder that MATLAB adds to the search path at startup, specified as a character vector. The default userpath is platform-specific: Windows: user's "Documents" folder appended with "MATLAB" Mac: user's "Documents" folder ($home/Documents) appended with "MATLAB" Linux: user's $home folder appended by "Documents" and "MATLAB" (if there is no $home/Documents directory, userpath will not be set) USERPATH(path) set the current value of userpath to the folder passed in. It updates the current MATLAB path, and this new userpath will persist across MATLAB sessions. USERPATH('reset') resets the userpath to the default. It updates the current MATLAB path, and this new userpath will persist across MATLAB sessions. USERPATH('clear') removes the userpath. It updates the current MATLAB path, and this new userpath will persist across MATLAB sessions. Note that additional folders can be added to the top of the search path upon startup by specifying the path for the folders via the MATLABPATH environment variable. On Mac and Linux, if the directory $home/matlab exists, it will also be added to the search path after any folders specified via the MATLABPATH environment variable regardless of whether the MATLABPATH environment variable is set. (This is done for compatibility with earlier releases.) See also PATHDEF. Documentation for userpath doc userpath

댓글을 달려면 로그인하십시오.

추가 답변 (1개)

Derrick Early
Derrick Early 2015년 1월 9일
Thank you! This fix worked.

카테고리

Help CenterFile Exchange에서 Startup and Shutdown에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by