How can I get operating system MAC address for a Windows Machine from MATLAB 7.14 (R2012a)?
조회 수: 18 (최근 30일)
이전 댓글 표시
I would like to find the exact MAC address from MATLAB for my Windows Machine because I want to use it been stored as a variable.
채택된 답변
MathWorks Support Team
2013년 9월 17일
In order to get MAC information, you can use the Windows command line command 'getmac', and use MATLAB function 'dos' to execute DOS command in MATLAB.
The link below describes this function.
web([docroot '/techdoc/ref/dos.html'])
Using the output of this command, you can parse the resulting string output to get MAC address.
For instance:
[status,result] = dos('getmac');
mac = result(160:176);
댓글 수: 0
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Introduction to Installation and Licensing에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!