comparison toolboxes/MIRtoolbox1.3.2/MIRToolbox/@mirpattern/display.m @ 0:e9a9cd732c1e tip

first hg version after svn
author wolffd
date Tue, 10 Feb 2015 15:05:51 +0000
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:e9a9cd732c1e
1 function display(p)
2
3 % MIRPATTERN/DISPLAY display of pattern
4
5 figure
6 hold on
7
8 k = 0;
9
10 for i = 1:length(p.pattern)
11 display(['Pattern # ',num2str(i)])
12 col = num2col(i);
13 for j = 1:length(p.pattern{i}.occurrence)
14 display(['Occurrence # ',num2str(j)])
15 p.pattern{i}.occurrence{j}
16 fill([p.pattern{i}.occurrence{j}.start ...
17 p.pattern{i}.occurrence{j}.end ...
18 p.pattern{i}.occurrence{j}.end ...
19 p.pattern{i}.occurrence{j}.start], ...
20 [k k k+1 k+1],col);
21 k = k+1;
22 end
23 display('**************')
24 end
25
26 xlabel('time (in s.)')
27 ylabel('pattern and their occurrences')
28 set(gca,'YTick',[])