[status,info]=dos('@echo off &for /f "tokens=4,5*" %i in (''tasklist ^|findstr /r /I "matlab.exe"'') do echo %j');
info(find(info=='K'))=[];
info(find(info == ',')) = [];
sprintf('Matlab used memory : %.0f KB',str2num(info))
MATLAB内存使用情况查询
在用MATLAB做图像处理时 经常会