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