view 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 source
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',[])