도움말 센터도움말 센터
환경 변수(Environment Variable)
val = getenv(name)
예제
val = getenv(name)은 운영 체제 환경 변수 name의 값을 문자형 벡터로 반환합니다. name이 존재하지 않는 경우 getenv는 빈 문자형 벡터를 반환합니다.
val
name
getenv
UNIX® 플랫폼에서는 MATLAB® 시작에 사용되는 셸에 따라 운영 체제 환경이 결정됩니다. 예를 들어, Mac 플랫폼의 Applications 폴더에서 MATLAB을 시작하면 터미널에서 MATLAB을 시작할 때 생성되는 것과 다른 환경이 생성됩니다.
Applications
모두 축소
res = getenv("SYSTEMROOT")
res = 'C:\windows'
환경 변수 이름으로, string형 스칼라 또는 문자형 벡터로 지정됩니다.
예: "PATH"
"PATH"
backgroundPool
ThreadPool
이 함수는 스레드 기반 환경을 완전히 지원합니다. 자세한 내용은 스레드 기반 환경에서 MATLAB 함수 실행하기 항목을 참조하십시오.
R2006a 이전에 개발됨
isenv | setenv | unsetenv | computer | pwd | ver | path
isenv
setenv
unsetenv
computer
pwd
ver
path
다음 MATLAB 명령에 해당하는 링크를 클릭했습니다.
명령을 실행하려면 MATLAB 명령 창에 입력하십시오. 웹 브라우저는 MATLAB 명령을 지원하지 않습니다.
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Contact your local office