This is a static copy of a profile reportHome
setwinsize (34 calls, 0.011 sec)
Generated 05-Aug-2011 13:03:45 using cpu time.
function in file /home/LeechJ/cbass_analysis/matutils/setwinsize.m
Copy to new window for comparing multiple runs
Parents (calling functions)
Lines where the most time was spent
Line Number | Code | Calls | Total Time | % Time | Time Plot |
13 | set(winhandle,'Position',p); | 34 | 0.011 s | 100.0% |  |
12 | p(2)=top-p(4); | 34 | 0 s | 0% |  |
11 | p(4)=y; | 34 | 0 s | 0% |  |
10 | p(3)=x; | 34 | 0 s | 0% |  |
9 | top=p(2)+p(4); | 34 | 0 s | 0% |  |
All other lines | | | 0 s | 0% |  |
Totals | | | 0.011 s | 100% | |
Children (called functions)
No childrenCode Analyzer results
No Code Analyzer messages.Coverage results
[ Show coverage for parent directory ]
Total lines in function | 13 |
Non-code lines (comments, blank lines) | 7 |
Code lines (lines that can run) | 6 |
Code lines that did run | 6 |
Code lines that did not run | 0 |
Coverage (did run/can run) | 100.00 % |
Function listing
time calls line
1 function setwinsize(winhandle,x,y)
2 % setwinsize(handle,x,y)
3 %
4 % Set the size of a window without moving the top left corner
5 %
6 % eg: setwinsize(gcf,1000,500)
7
34 8 p=get(winhandle,'Position');
34 9 top=p(2)+p(4);
34 10 p(3)=x;
34 11 p(4)=y;
34 12 p(2)=top-p(4);
0.01 34 13 set(winhandle,'Position',p);