diff 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
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Code/Test/plotColourSignal.m	Wed Feb 13 11:02:39 2013 +0000
@@ -0,0 +1,12 @@
+function [] = plotColourSignal( x, frameLength, noOfFrames, values )
+
+figure(1);
+hold off;
+j=1;
+for( i=1: frameLength+1 : noOfFrames * frameLength )
+    if( values(j) == 0 )
+        plot( [i i+frameLength], x(i:i+frameLength), 'r' );
+    elseif( values(j) == 1 )
+        plot( [i i+frameLength], x(i:i+frameLength), 'g' );
+    end
+end
\ No newline at end of file