How to use MATLAB to determine if an exe process exist?

28 vues (au cours des 30 derniers jours)
jason lee
jason lee le 18 Nov 2020
Modifié(e) : Jakob le 18 Nov 2020
i want to use MATLAB to determine if 'mspaint.exe' is running on the system and return the status.
How could i complish this with MATLAB?

Réponse acceptée

Jakob
Jakob le 18 Nov 2020
Modifié(e) : Jakob le 18 Nov 2020
[~,b] = system('tasklist');
IsRunning = contains(b, 'mspaint.exe'); %1, if is running / 0, if not

Plus de réponses (0)

Catégories

En savoir plus sur Introduction to Installation and Licensing dans Help Center et File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by