function DS=speakerSet2ds(speakerSet) %speakerSet2ds: Transform speakerSet to DS % Usage: DS=speakerSet2ds(speakerSet) % Roger Jang, 20090131 DS.input=[]; DS.output=[]; for i=1:length(speakerSet) for j=1:length(speakerSet(i).sentence) DS.input=[DS.input, speakerSet(i).sentence(j).fea]; frameNum=size(speakerSet(i).sentence(j).fea, 2); DS.output=[DS.output, i*ones(1, frameNum)]; end end DS.outputName={speakerSet.name};