%% kill.m % Input a process image ID number(s) to be terminated. function kill(ID) if ~ID, return,end for ii = 1:length(ID) dos(['taskkill -pid ',num2str(ID(ii)),' > temp']); end