도움말 센터도움말 센터
환경 변수(Environment Variable)
value = getenv(name)
예제
value = getenv(name)은 name=value 형식의 텍스트를 운영 체제 환경 변수 목록에서 검색합니다.
value
name
name=value
UNIX® 플랫폼에서는 MATLAB® 시작에 사용되는 셸에 따라 운영 체제 환경이 결정됩니다. 예를 들어, Mac 플랫폼의 Applications 폴더에서 MATLAB을 시작하면 터미널에서 MATLAB을 시작하는 것과는 다른 셸 환경이 생성됩니다.
Applications
모두 축소
res = getenv('SYSTEMROOT')
res = 'C:\windows'
환경 변수 이름으로, string형이나 문자형 벡터로 지정됩니다.
예: 'PATH'
'PATH'
[]
환경 변수 값으로, 문자형 벡터로 지정됩니다. name을 찾을 수 없으면 MATLAB은 빈 행렬을 반환합니다.
backgroundPool
ThreadPool
이 함수는 스레드 기반 환경을 완전히 지원합니다. 자세한 내용은 Run MATLAB Functions in Thread-Based Environment 항목을 참조하십시오.
setenv | computer | pwd | ver | path
setenv
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