Dawn@4: Dawn@4: timeShift = length(formants) / length(vuv); Dawn@4: Dawn@4: for( idx = 1: length( formants ) ) Dawn@4: frameIdx = floor( idx / timeShift ) + 1; Dawn@4: if( vuv( frameIdx ) == 0 ) Dawn@4: % frame is silent Dawn@4: plot( formants( idx,2 ), 'w.' ); Dawn@4: plot( formants( idx,3 ), 'w.' ); Dawn@4: plot( formants( idx,4 ), 'w.' ); Dawn@4: elseif( vuv( frameIdx ) == 1 ) Dawn@4: % frame is voiced Dawn@4: plot( formants( idx,2 ), 'y.' ); Dawn@4: plot( formants( idx,3 ), 'c.' ); Dawn@4: plot( formants( idx,4 ), 'g.' ); Dawn@4: else Dawn@4: %frame is unvoiced Dawn@4: plot( formants( idx,2 ), 'r.' ); Dawn@4: plot( formants( idx,3 ), 'r.' ); Dawn@4: plot( formants( idx,4 ), 'r.' ); Dawn@4: end Dawn@4: end