How Can I Get the Windows Version Number in a Script?

10 次查看(过去 30 天)

采纳的回答

MathWorks Support Team
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 个)

类别

Help CenterFile Exchange 中查找有关 Startup and Shutdown 的更多信息

标签

尚未输入任何标签。

产品


版本

R2017b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by