- •This is a static copy of a profile report
- •This is a static copy of a profile report
- •Code Analyzer results
- •Function listing
- •This is a static copy of a profile report
- •Code Analyzer results
- •Function listing
- •This is a static copy of a profile report
- •Function listing
- •Ответы на контрольные вопросы:
- •Code Analyzer results
This is a static copy of a profile report
Home
rec_fractal>picture (9 calls, 0.000 sec) Generated 17-Mar-2012 22:36:36 using cpu time. subfunction in file /home/psdarko/matlab/Var 25/pw11/rec_fractal.m Copy to new window for comparing multiple runs
Parents (calling functions)
Function Name |
Function Type |
Calls |
rec_fractal |
function |
1 |
rec_fractal>picture |
subfunction |
8 |
Lines where the most time was spent No measurable time spent in this function
Line Number |
Code |
Calls |
Total Time |
% Time |
Time Plot |
30 |
end |
9 |
0 s |
0% |
|
29 |
end |
1 |
0 s |
0% |
|
28 |
end |
8 |
0 s |
0% |
|
27 |
picture(x1(i),y1(i),L,L1,n-1); |
8 |
0 s |
0% |
|
26 |
for i=1:8 |
1 |
0 s |
0% |
|
All other lines |
|
|
0 s |
0% |
|
Totals |
|
|
0 s |
0% |
|
Children (called functions)
Function Name |
Function Type |
Calls |
Total Time |
% Time |
Time Plot |
rec_fractal>picture |
subfunction |
8 |
0 s |
0% |
|
Self time (built-ins, overhead, etc.) |
|
|
0 s |
0% |
|
Totals |
|
|
0 s |
0% |
|
Code Analyzer results
Line number |
Message |
15 |
Input argument 'L1' might be unused, although a later one is used. Consider replacing it by ~. |
22 |
Use && instead of & as the AND operator in (scalar) conditional statements. |
Coverage results [ Show coverage for parent directory ]
Total lines in function |
16 |
Non-code lines (comments, blank lines) |
3 |
Code lines (lines that can run) |
13 |
Code lines that did run |
13 |
Code lines that did not run |
0 |
Coverage (did run/can run) |
100.00 % |
Function listing
time calls line 15 function [] = picture(x,y,L,L1,n) 16 %PICTURE рекурсивная функция 9 17 x_c = [x-L/2,x+L/2,x+L/2,x-L/2,x-L/2]; 9 18 y_c = [y-L/2,y-L/2,y+L/2,y+L/2,y-L/2]; 19 9 20 line(x_c,y_c); 9 21 global L_MIN 9 22 if (n-1>0) & ~(L<L_MIN) 1 23 L1 = 1.25 * L; L = L/3.1; 1 24 x1 = [x-L1, x, x+L1, x+L1, x+L1, x, x-L1, x-L1]; 1 25 y1 = [y+L1, y+L1, y+L1, y, y-L1, y-L1, y-L1, y]; 1 26 for i=1:8 8 27 picture(x1(i),y1(i),L,L1,n-1); 8 28 end 1 29 end 9 30 end
Геометрический
фрактал третьего порядка
Профиль функции.
