Profiling, Optimization, and Acceleration of MATLAB code MATLAB 代码的分析、优化和加速.pdf

Profiling, Optimization, and Acceleration of MATLAB code MATLAB 代码的分析、优化和加速.pdf

Profiling,Optimization,andAccelerationofMATLABcode

DrPhilipJNaylor

Profiling

Beforeyoutryandmakeanysortofprogramrunfasteryoufirstneedtofindoutwhichpartsofitarerunningslowly.MATLAB

providesasimplemechanismforseeinghowmuchtimeaparticularpieceofcodetakestorun,byaddingthecommandtic;

atthestart,andtoc;attheend.Whenthetoc;commandexecutesitprintsouttheamountoftimethathaselapsedsince

thepreceedingtic;command.However,therearetwoproblemswiththisappr

文档评论(0)

1亿VIP精品文档

相关文档