userpath를 시작 폴더로 할당하기(Macintosh 또는 UNIX)
이 예제에서는 Macintosh 플랫폼에서 userpath
폴더를 시작 폴더로 할당하는 방법을 보여줍니다. UNIX® 플랫폼에서도 절차는 비슷합니다. userpath
가 Macintosh 플랫폼에서 디폴트 값으로 설정되어 있고 smith
가 홈 폴더라고 간주하겠습니다.
bash 셸을 사용하여, userpath
가 시작 폴더로 사용되도록 MATLAB_USE_USERWORK
환경 변수를 설정합니다.
export MATLAB_USE_USERWORK=1
이 셸에서 MATLAB®을 시작합니다. 그런 다음 MATLAB의 현재 폴더를 확인합니다.
pwd
/Users/smith/Documents/MATLAB
이 폴더가 userpath
에 대해 정의된 폴더와 같은지 확인합니다.
userpath
/Users/smith/Documents/MATLAB;
userpath
가 검색 경로 맨 위 수준에 있는지 확인합니다.
path
/Users/smith/Documents/MATLAB /Users/smith/Applications/MATLAB/R2009a/toolbox/matlab/general /Users/smith/Applications/MATLAB/R2009a/toolbox/matlab/ops ...