1. profile 
例子: 
profile on 
plot(magic(35)) 
profile viewer 
profsave(profile('info'),'profile_results') 

profile on -history 
plot(magic(4)); 
p = profile('info'); 
for n = 1:size(p.FunctionHistory,2) 
if p.FunctionHistory(1,n)==0 
str = 'entering function: '; 
else 
str = ' exiting function: '; 
end 
disp([str p.FunctionTable(p.FunctionHistory(2,n)).FunctionName]); 
end 


2. tic,toc 

TIC, operation, TOC 

3. cputime 
t=cputime; your_operation; cputime-t 

4. clock,etime 
t0 = clock; 
operation 
etime(clock,t0)

相关文章:

  • 2022-12-23
  • 2021-10-29
  • 2022-12-23
  • 2021-11-26
  • 2021-08-04
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-12-19
  • 2021-09-02
  • 2022-12-23
  • 2021-12-03
  • 2021-08-21
  • 2021-09-09
相关资源
相似解决方案