How Can I Get the Windows Version Number in a Script?
4 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
MathWorks Support Team
le 5 Déc 2017
Réponse apportée : MathWorks Support Team
le 20 Déc 2017
In a MATLAB script, how can I retrieve the computer's version of Windows?
Réponse acceptée
MathWorks Support Team
le 7 Fév 2018
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 commentaires
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Startup and Shutdown dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!