This is a static copy of a profile report

Home

see_mind_pic (2 calls, 1.703 sec)
Generated 15-Mar-2007 12:01:55 using real time.
M-function in file c:\mind07\see_mind_pic.m
[Copy to new window for comparing multiple runs]

Parents (calling functions)

Function NameFunction TypeCalls
legacyM-function2
Lines where the most time was spent

Line NumberCodeCallsTotal Time% TimeTime Plot
3
load('C:\mind_data06') 
21.125 s66.1%
119
imshow([.6   1],[.1 .4],I,map)
10.250 s14.7%
118
[I,map]=imread(['C:\mind06\',n...
10.172 s10.1%
121
pause(6)
10.047 s2.8%
38
figure('Units','Normalized','P...
10.047 s2.8%
Other lines & overhead  0.063 s3.7%
Totals  1.703 s100% 
Children (called functions)

Function NameFunction TypeCallsTotal Time% TimeTime Plot
imshowM-function10.234 s13.8%
imreadM-function10.109 s6.4%
strvcatM-function30 s0%
axisM-function30 s0%
holdM-function90 s0%
newplotM-function20 s0%
titleM-function10 s0%
selectM-function10 s0%
Self time (built-ins, overhead, etc.)  1.359 s79.8%
Totals  1.703 s100% 
M-Lint results
Line numberMessage
9The value assigned here to variable 'drawn' might never be used.
12The value assigned here to variable 'drawn' might never be used.
16Use of brackets [] is unnecessary. Use parentheses to group, if needed.
24Constructing a cell array is faster than using STRVCAT.
27Constructing a cell array is faster than using STRVCAT.
30Constructing a cell array is faster than using STRVCAT.
33Constructing a cell array is faster than using STRVCAT.
42Use of brackets [] is unnecessary. Use parentheses to group, if needed.
98FOR may not be aligned with its matching END (line 106).
115Terminate statement with semicolon to suppress output.
116Terminate statement with semicolon to suppress output.
117Terminate statement with semicolon to suppress output.
Coverage results
[ Show coverage for parent directory ]
Total lines in file135
Non-code lines (comments, blank lines)30
Code lines (lines that can run)105
Code lines that did run71
Code lines that did not run34
Coverage (did run/can run)67.62 %
Function listing
   time   calls  line
1 function see_mind_pic(content,connector,dis)
2 %displays current mind state as 2D graph
1.13 2 3 load('C:\mind_data06')
2 4 clear h1 h2
2 5 if ~any(dis)
1 6 return
7 end
1 8 if isempty(connector)
9 drawn=zeros(1);
< 0.01 1 10 else
1 11 s=max(max(connector));
1 12 drawn=zeros(s);
1 13 end
1 14 if isempty(content)
15 figure('Units','Normalized','Position',[0 0 1 1])
16 text(.5,.9,['EMPTY MIND'],'FontSize',22,'Color','r')
17 axis off
18 return
19 end
1 20 level1=[];level2=[];level3=[];level4=[];n=length(content(:,1));
< 0.01 1 21 i1s=[];i2s=[];i3s=[];i4s=[];
1 22 for i=1:n
3 23 if G(content(i,2)).level==1
2 24 level1=strvcat(level1,G(content(i,2)).name);
2 25 i1s=[i1s,i];
1 26 elseif G(content(i,2)).level==2
1 27 level2=strvcat(level2,G(content(i,2)).name);
1 28 i2s=[i2s,i];
29 elseif G(content(i,2)).level==3
30 level3=strvcat(level3,G(content(i,2)).name);
31 i3s=[i3s,i];
32 elseif G(content(i,2)).level==4
33 level4=strvcat(level4,G(content(i,2)).name);
34 i4s=[i4s,i];
35 end
36
3 37 end
0.05 1 38 figure('Units','Normalized','Position',[0 0 1 1])
1 39 axis manual
1 40 hold on
41
1 42 text(.6,.9,['IDEA PICTURE'],'FontSize',20)
1 43 hold on
1 44 xs=zeros(1,n);ys=zeros(1,n);
45
1 46 if ~isempty(level1)
1 47 wide1=length(level1(:,1));
1 48 y1s=.10.*ones(1,wide1);
1 49 x1s=cumsum([0,.15.*ones(1,wide1-1)]);
1 50 ys(i1s)=y1s;
1 51 xs(i1s)=x1s;
1 52 for nu=1:wide1
2 53 text(x1s(nu),y1s(nu),[' ',level1(nu,:)],'Color','r','FontSize',15)
2 54 hold on
2 55 end
0.02 1 56 end
57
1 58 if ~isempty(level2)
1 59 wide2=length(level2(:,1));
1 60 y2s=.35.*ones(1,wide2);
1 61 x2s=cumsum([0,.15.*ones(1,wide2-1)]);
1 62 ys(i2s)=y2s;xs(i2s)=x2s;
1 63 for nu=1:wide2
1 64 text(x2s(nu),y2s(nu),[' ',level2(nu,:)],'Color','b','FontSize',15)
1 65 hold on
1 66 end
1 67 end
68
1 69 if ~isempty(level3)
70 wide3=length(level3(:,1));
71 y3s=.65.*ones(1,wide3);
72 x3s=cumsum([0,.15.*ones(1,wide3-1)]);
73 ys(i3s)=y3s;xs(i3s)=x3s;
74 for nu=1:wide3
75 text(x3s(nu),y3s(nu),[' ',level3(nu,:)],'Color','m','FontSize',15)
76 hold on
77 end
78 end
79
1 80 if ~isempty(level4)
81 wide4=length(level4(:,1));
82 y4s=.85.*ones(1,wide4);
83 x4s=cumsum([0,.5.*ones(1,wide4-1)]);
84 ys(i4s)=y4s;xs(i4s)=x4s;
85 for nu=1:wide4
86 text(x4s(nu),y4s(nu),[' ',level4(nu,:)],'Color','c','FontSize',25)
87 hold on
88 end
89 end
1 90 axis off
1 91 hold on
92
93 %now draw connections
1 94 axis off
< 0.01 1 95 conn_color='kymg';
1 96 if ~isempty(connector)
1 97 m=length(connector(:,1));
1 98 for f=1:m
< 0.01 2 99 h1=connector(f,1);h2=connector(f,2);
2 100 i1=find(content(:,1)==h1);
2 101 i2=find(content(:,1)==h2);
2 102 hold on
103
104
2 105 plot([xs(i1), xs(i2)],[ys(i1),ys(i2)],conn_color(connector(f,3)),'LineWidth',5);
2 106 end
107
1 108 title(' Black connector: j = 1. Yellow: j = 2. Magenta: j = 3','FontSize',16)
109 else
110 end
111 %pause
112 %close all
0.02 1 113 hold on
114 %dis
1 115 probs=dis./sum(dis)
1 116 g_num=select(probs)
0.02 1 117 name=PIX(g_num).name
0.17 1 118 [I,map]=imread(['C:\mind06\',name,'.bmp']);
0.25 1 119 imshow([.6 1],[.1 .4],I,map)
1 120 text(.4,.5,['Association to ',name],'FontSize',32)% .4 instead of .6?
0.05 1 121 pause(6)
122
123
124
125
126
127
128
129
130
131
132
133
134
135