This is a static copy of a profile report

Home

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)

Function NameFunction TypeCalls
genfigfunction24
genfigLoadfunction2
genfigAlphafunction4
genfigPowerSpecfunction1
plot1overffunction2
genfigRmsfunction1
Lines where the most time was spent

Line NumberCodeCallsTotal Time% TimeTime Plot
13
set(winhandle,'Position',p);
340.011 s100.0%
12
p(2)=top-p(4);
340 s0%
11
p(4)=y;
340 s0%
10
p(3)=x;
340 s0%
9
top=p(2)+p(4);
340 s0%
All other lines  0 s0%
Totals  0.011 s100% 
Children (called functions)
No children
Code Analyzer results
No Code Analyzer messages.
Coverage results
[ Show coverage for parent directory ]
Total lines in function13
Non-code lines (comments, blank lines)7
Code lines (lines that can run)6
Code lines that did run6
Code lines that did not run0
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);