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