Mercurial > hg > camir-ismir2012
comparison toolboxes/MIRtoolbox1.3.2/MIRToolbox/@mirpattern/display.m @ 0:cc4b1211e677 tip
initial commit to HG from
Changeset:
646 (e263d8a21543) added further path and more save "camirversion.m"
author | Daniel Wolff |
---|---|
date | Fri, 19 Aug 2016 13:07:06 +0200 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:cc4b1211e677 |
---|---|
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',[]) |