在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
例子: 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) |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论