That's exactly what my attached demo does.
By the way, it works to find any running process. Just bring up the Process List by typing control-shift-Esc and find the name of the process in the Processes tab.
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!