Mercurial > hg > emotion-detection-top-level
annotate Code/Test/plotColourSignal.m @ 4:92ca03a8fa99 tip
Update to ICASSP 2013 benchmark
author | Dawn Black |
---|---|
date | Wed, 13 Feb 2013 11:02:39 +0000 |
parents | |
children |
rev | line source |
---|---|
Dawn@4 | 1 function [] = plotColourSignal( x, frameLength, noOfFrames, values ) |
Dawn@4 | 2 |
Dawn@4 | 3 figure(1); |
Dawn@4 | 4 hold off; |
Dawn@4 | 5 j=1; |
Dawn@4 | 6 for( i=1: frameLength+1 : noOfFrames * frameLength ) |
Dawn@4 | 7 if( values(j) == 0 ) |
Dawn@4 | 8 plot( [i i+frameLength], x(i:i+frameLength), 'r' ); |
Dawn@4 | 9 elseif( values(j) == 1 ) |
Dawn@4 | 10 plot( [i i+frameLength], x(i:i+frameLength), 'g' ); |
Dawn@4 | 11 end |
Dawn@4 | 12 end |