필터 지우기
필터 지우기

How to get the name of the computer under MATLAB?

조회 수: 157 (최근 30일)
Mr M.
Mr M. 2018년 4월 29일
댓글: nan 2020년 8월 18일
I want to register the name of the computer where my script is running. Is it possible to get this info?

답변 (1개)

Ameer Hamza
Ameer Hamza 2018년 4월 29일
Check this FEX submission. Or you can simply try following commands
[ret, name] = system('hostname')
name = getenv('COMPUTERNAME'); % for windows
name = getenv('HOSTNAME')
  댓글 수: 1
nan
nan 2020년 8월 18일
This does not work when running a VPN on a Mac (running Catalina); the hostname is replaced by an IP address.

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

카테고리

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