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

18 次查看(过去 30 天)
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?

采纳的回答

Jakob
Jakob 2020-11-18
编辑:Jakob 2020-11-18
[~,b] = system('tasklist');
IsRunning = contains(b, 'mspaint.exe'); %1, if is running / 0, if not

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Get Started with MATLAB 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by