This is a static copy of a profile reportHome
see_mind_germ (2 calls, 1.609 sec)
Generated 15-Mar-2007 12:01:44 using real time.
M-function in file c:\mind07\see_mind_germ.m
[Copy to new window for comparing multiple runs]
Parents (calling functions)
Function Name | Function Type | Calls |
think1 | M-function | 1 |
think3 | M-function | 1 |
Lines where the most time was spent
Line Number | Code | Calls | Total Time | % Time | Time Plot |
3 | load('C:\mind_data06') | 2 | 1.031 s | 64.1% |  |
32 | figure('Units','Normalized','P... | 2 | 0.219 s | 13.6% |  |
103 | pause(5) | 2 | 0.141 s | 8.7% |  |
33 | axis off | 2 | 0.094 s | 5.8% |  |
37 | xs=zeros(1,n);ys=zeros(1,n); | 2 | 0.031 s | 1.9% |  |
Other lines & overhead | | | 0.094 s | 5.8% |  |
Totals | | | 1.609 s | 100% | |
Children (called functions)
Function Name | Function Type | Calls | Total Time | % Time | Time Plot |
hold | M-function | 13 | 0.047 s | 2.9% |  |
axis | M-function | 4 | 0.016 s | 1.0% |  |
strvcat | M-function | 7 | 0 s | 0% |  |
Self time (built-ins, overhead, etc.) | | | 1.547 s | 96.1% |  |
Totals | | | 1.609 s | 100% | |
M-Lint results
Line number | Message |
6 | The value assigned here to variable 'drawn' might never be used. |
9 | The value assigned here to variable 'drawn' might never be used. |
18 | Constructing a cell array is faster than using STRVCAT. |
21 | Constructing a cell array is faster than using STRVCAT. |
24 | Constructing a cell array is faster than using STRVCAT. |
27 | Constructing a cell array is faster than using STRVCAT. |
35 | Use of brackets [] is unnecessary. Use parentheses to group, if needed. |
90 | FOR may not be aligned with its matching END (line 98). |
Coverage results
[ Show coverage for parent directory ]
Total lines in file | 118 |
Non-code lines (comments, blank lines) | 27 |
Code lines (lines that can run) | 91 |
Code lines that did run | 51 |
Code lines that did not run | 40 |
Coverage (did run/can run) | 56.04 % |
Function listing
time calls line
1 function see_mind_germ(content,connector)
2 %displays current mind state as 2D graph
1.03 2 3 load('C:\mind_data06')
0.02 2 4 clear h1 h2
2 5 if isempty(connector)
2 6 drawn=zeros(1);
7 else
8 s=max(max(connector));
9 drawn=zeros(s);
10 end
2 11 if isempty(content)
12 return
13 end
2 14 level1=[];level2=[];level3=[];level4=[];n=length(content(:,1));
< 0.01 2 15 i1s=[];i2s=[];i3s=[];i4s=[];
2 16 for i=1:n
7 17 if G(content(i,2)).level==1
6 18 level1=strvcat(level1,G(content(i,2)).name);
6 19 i1s=[i1s,i];
1 20 elseif G(content(i,2)).level==2
1 21 level2=strvcat(level2,G(content(i,2)).name);
1 22 i2s=[i2s,i];
23 elseif G(content(i,2)).level==3
24 level3=strvcat(level3,G(content(i,2)).name);
25 i3s=[i3s,i];
26 elseif G(content(i,2)).level==4
27 level4=strvcat(level4,G(content(i,2)).name);
28 i4s=[i4s,i];
29 end
30
7 31 end
0.22 2 32 figure('Units','Normalized','Position',[0 0 1 1])
0.09 2 33 axis off
0.02 2 34 hold on
2 35 text(.1,.9,['THOUGHT GERM, WAIT FOR THINKING...'],'Color','b','FontSize',35)
0.03 2 36 hold on
0.03 2 37 xs=zeros(1,n);ys=zeros(1,n);
38
2 39 if ~isempty(level1)
2 40 wide1=length(level1(:,1));
2 41 y1s=.10.*ones(1,wide1);
2 42 x1s=cumsum([0,.15.*ones(1,wide1-1)]);
2 43 ys(i1s)=y1s;
2 44 xs(i1s)=x1s;
2 45 for nu=1:wide1
6 46 text(x1s(nu),y1s(nu),[' ',level1(nu,:)],'Color','r','FontSize',15)
6 47 hold on
6 48 end
2 49 end
50
2 51 if ~isempty(level2)
1 52 wide2=length(level2(:,1));
1 53 y2s=.35.*ones(1,wide2);
1 54 x2s=cumsum([0,.15.*ones(1,wide2-1)]);
1 55 ys(i2s)=y2s;xs(i2s)=x2s;
1 56 for nu=1:wide2
0.02 1 57 text(x2s(nu),y2s(nu),[' ',level2(nu,:)],'Color','b','FontSize',15)
1 58 hold on
1 59 end
1 60 end
61
2 62 if ~isempty(level3)
63 wide3=length(level3(:,1));
64 y3s=.65.*ones(1,wide3);
65 x3s=cumsum([0,.15.*ones(1,wide3-1)]);
66 ys(i3s)=y3s;xs(i3s)=x3s;
67 for nu=1:wide3
68 text(x3s(nu),y3s(nu),[' ',level3(nu,:)],'Color','m','FontSize',15)
69 hold on
70 end
71 end
72
2 73 if ~isempty(level4)
74 wide4=length(level4(:,1));
75 y4s=.85.*ones(1,wide4);
76 x4s=cumsum([0,.5.*ones(1,wide4-1)]);
77 ys(i4s)=y4s;xs(i4s)=x4s;
78 for nu=1:wide4
79 text(x4s(nu),y4s(nu),[' ',level4(nu,:)],'Color','c','FontSize',25)
80 hold on
81 end
82 end
2 83 axis manual
2 84 hold on
85
86 %now draw connections
< 0.01 2 87 conn_color='kymg';
2 88 if ~isempty(connector)
89 m=length(connector(:,1));
90 for f=1:m
91 h1=connector(f,1);h2=connector(f,2);
92 i1=find(content(:,1)==h1);
93 i2=find(content(:,1)==h2);
94 hold on
95
96
97 plot([xs(i1), xs(i2)],[ys(i1),ys(i2)],conn_color(connector(f,3)),'LineWidth',5);
98 end
99
100 title(' Black connector: j = 1. Yellow: j = 2. Magenta: j = 3','FontSize',16)
2 101 else
2 102 end
0.14 2 103 pause(5)
104 %close all
105
106
107
108
109
110
111
112
113
114
115
116
117
118