function v=vadconvert(vad); % Syntax: v=vadconvert(vad) % % Conversion of unianal VAD format to the vad decision for each frame % (to be used with plotsigpar, etc). % vad - unianal VAD matrice (1st line - numbers of frames, 2nd - type of % activity) % v - complete vector of vad decisions [dummy,L]=size(vad); v=[]; for i=1:L, v=[v ones(1, vad(1,i)) * vad(2,i) ]; end