Mercurial > hg > camir-aes2014
diff 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 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/toolboxes/MIRtoolbox1.3.2/MIRToolbox/@mirpattern/display.m Tue Feb 10 15:05:51 2015 +0000 @@ -0,0 +1,28 @@ +function display(p) + +% MIRPATTERN/DISPLAY display of pattern + +figure +hold on + +k = 0; + +for i = 1:length(p.pattern) + display(['Pattern # ',num2str(i)]) + col = num2col(i); + for j = 1:length(p.pattern{i}.occurrence) + display(['Occurrence # ',num2str(j)]) + p.pattern{i}.occurrence{j} + fill([p.pattern{i}.occurrence{j}.start ... + p.pattern{i}.occurrence{j}.end ... + p.pattern{i}.occurrence{j}.end ... + p.pattern{i}.occurrence{j}.start], ... + [k k k+1 k+1],col); + k = k+1; + end + display('**************') +end + +xlabel('time (in s.)') +ylabel('pattern and their occurrences') +set(gca,'YTick',[]) \ No newline at end of file