How Can I Get the Windows Version Number in a Script?
조회 수: 9 (최근 30일)
이전 댓글 표시
MathWorks Support Team
2017년 12월 5일
답변: MathWorks Support Team
2017년 12월 20일
In a MATLAB script, how can I retrieve the computer's version of Windows?
채택된 답변
MathWorks Support Team
2018년 2월 7일
In order to get the Windows version, please execute the following line of code in the MATLAB Command Window:
>> [~, WindowsVersion] = system('ver')
The above command calls the ‘system’ MATLAB function. This MATLAB function tells the operating system to execute the command ‘ver’, which outputs the version of Windows on the computer. For more information about the ‘system’ MATLAB function, please refer to the following link:
댓글 수: 0
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Startup and Shutdown에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!