function plotAudioFrameByType( x, noOfValidFrames, vuv, frameLength );


hold on

for frameIdx = 1:noOfValidFrames
    startPoint = ((frameIdx-1) * frameLength)+1;
    endPoint = frameIdx * frameLength;
%     if( vuv( frameIdx ) == 0 ) %silent
%         plot( startPoint : endPoint  , x( startPoint : endPoint ), 'w' );
    if( vuv( frameIdx ) == 1 ) % voiced
        plot( startPoint : endPoint , x( startPoint : endPoint ), 'y' );
    elseif( vuv( frameIdx ) == 2 ) %unvoiced
        plot( startPoint : endPoint , x( startPoint : endPoint ) , 'r' );
    end
end
hold off