Koch_Kurve (Calls: 1, Time: 11.503 s)
Generated 18-May-2021 16:05:23 using performance time.
function in file /home/wolf/MATLAB Add-Ons/Toolboxes/FraktaleTB/Koch_Kurve.m
Copy to new window for comparing multiple runs
| Line Number | Code | Calls | Total Time | % Time | Time Plot |
| 19 | koch(k) | 1 | 10.707 s | 93.1% | |
| 13 | subplot(4,1,kl+1) | 4 | 0.510 s | 4.4% | |
| 14 | koch(kl); | 4 | 0.085 s | 0.7% | |
| 15 | title(['k = ',num2str(kl)]) | 4 | 0.083 s | 0.7% | |
| 18 | figure | 1 | 0.051 s | 0.4% | |
| All other lines | 0.068 s | 0.6% | |||
| Totals | 11.503 s | 100% |
| Function Name | Function Type | Calls | Total Time | % Time | Time Plot |
| Koch_Kurve>koch | subfunction | 5 | 10.791 s | 93.8% | |
| subplot | function | 4 | 0.492 s | 4.3% | |
| title | function | 5 | 0.108 s | 0.9% | |
| axis | function | 1 | 0.023 s | 0.2% | |
| num2str | function | 5 | 0.004 s | 0.0% | |
| Self time (built-ins, overhead, etc.) | 0.085 s | 0.7% | |||
| Totals | 11.503 s | 100% |
| Total lines in function | 21 |
| Non-code lines (comments, blank lines) | 8 |
| Code lines (lines that can run) | 13 |
| Code lines that did run | 11 |
| Code lines that did not run | 2 |
| Coverage (did run/can run) | 84.62 % |
time | Calls | line | |
|---|---|---|---|
1 | function Koch_Kurve(k) | ||
2 | % Plotten einer Koch-Kurve | ||
3 | % Aufruf >> Koch_Kurve(k) | ||
4 | % k legt die Zahl der Iterationen fest | ||
5 | % k >= 0; Empfehlung < 13 | ||
6 | |||
< 0.001 | 1 | 7 | if nargin == 0 |
8 | disp('kein Eingabe -> Defaultwert k=3') | ||
9 | k=3; | ||
< 0.001 | 1 | 10 | end |
11 | |||
< 0.001 | 1 | 12 | for kl=0:3 |
0.510 | 4 | 13 | subplot(4,1,kl+1) |
0.085 | 4 | 14 | koch(kl); |
0.083 | 4 | 15 | title(['k = ',num2str(kl)]) |
< 0.001 | 4 | 16 | end |
17 | |||
0.051 | 1 | 18 | figure |
10.707 | 1 | 19 | koch(k) |
0.034 | 1 | 20 | title(['k = ',num2str(k)]) |
0.034 | 1 | 21 | axis equal |
Other subfunctions in this file are not included in this listing.