- •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
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 рекурсивная функция 585 17 x_c = [x-L/2,x+L/2,x+L/2,x-L/2,x-L/2]; 585 18 y_c = [y-L/2,y-L/2,y+L/2,y+L/2,y-L/2]; 19 1.62 585 20 line(x_c,y_c); 0.54 585 21 global L_MIN 0.27 585 22 if (n-1>0) & ~(L<L_MIN) 73 23 L1 = 1.25 * L; L = L/3.1; 73 24 x1 = [x-L1, x, x+L1, x+L1, x+L1, x, x-L1, x-L1]; 73 25 y1 = [y+L1, y+L1, y+L1, y, y-L1, y-L1, y-L1, y]; 73 26 for i=1:8 0.27 584 27 picture(x1(i),y1(i),L,L1,n-1); 0.27 584 28 end 73 29 end 0.27 585 30 end
Ответы на контрольные вопросы:
Что такое рекурсия? Достоинства и недостатки использования рекурсивных функций при решении задач.
Базовая задача, рекурсивный спуск и подъем.
Рекурсивный и итерационный подходы к решению задач.
Что такое фрактал? Какие существуют группы фракталов?
Свойства геометрического фрактала.
