list.m

来自「基于matlab的面向对象的信号处理类库。主要应用于音频、语音信号的一些处理。内」· M 代码 · 共 29 行

M
29
字号
function segment_ids = list(m, segment_type)% function segment_ids = list(m, segment_type)switch segment_type    case 'phone',        segment_ids = {m.phone_list.phone};        k=1;        while k < length(segment_ids)            ix = strmatch(segment_ids{k}, {segment_ids{k+1:end}},'exact');            lix = 1:length(segment_ids);            lix(ix) = [];            segment_ids = {segment_ids{lix}};            k=k+1;        end    case 'word',        segment_ids = {m.word_list.word};        k=1;        while k < length(segment_ids)            ix = strmatch(segment_ids{k}, {segment_ids{k+1:end}},'exact');            lix = 1:length(segment_ids);            lix(ix) = [];            segment_ids = {segment_ids{lix}};            k=k+1;        end    case 'text',        segment_ids = m.text.str;    otherwise,        error('Unknown segment type');end

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?