Mercurial > hg > camir-ismir2012
annotate 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 |
rev | line source |
---|---|
Daniel@0 | 1 function display(p) |
Daniel@0 | 2 |
Daniel@0 | 3 % MIRPATTERN/DISPLAY display of pattern |
Daniel@0 | 4 |
Daniel@0 | 5 figure |
Daniel@0 | 6 hold on |
Daniel@0 | 7 |
Daniel@0 | 8 k = 0; |
Daniel@0 | 9 |
Daniel@0 | 10 for i = 1:length(p.pattern) |
Daniel@0 | 11 display(['Pattern # ',num2str(i)]) |
Daniel@0 | 12 col = num2col(i); |
Daniel@0 | 13 for j = 1:length(p.pattern{i}.occurrence) |
Daniel@0 | 14 display(['Occurrence # ',num2str(j)]) |
Daniel@0 | 15 p.pattern{i}.occurrence{j} |
Daniel@0 | 16 fill([p.pattern{i}.occurrence{j}.start ... |
Daniel@0 | 17 p.pattern{i}.occurrence{j}.end ... |
Daniel@0 | 18 p.pattern{i}.occurrence{j}.end ... |
Daniel@0 | 19 p.pattern{i}.occurrence{j}.start], ... |
Daniel@0 | 20 [k k k+1 k+1],col); |
Daniel@0 | 21 k = k+1; |
Daniel@0 | 22 end |
Daniel@0 | 23 display('**************') |
Daniel@0 | 24 end |
Daniel@0 | 25 |
Daniel@0 | 26 xlabel('time (in s.)') |
Daniel@0 | 27 ylabel('pattern and their occurrences') |
Daniel@0 | 28 set(gca,'YTick',[]) |