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