Mercurial > hg > c4dm-chord-transcriptions
annotate evaluationtools/cell2list.m @ 1:8973548174c1 tip
adding tools to repo
author | christopherh |
---|---|
date | Mon, 06 May 2013 14:43:47 +0100 |
parents | |
children |
rev | line source |
---|---|
christopherh@1 | 1 |
christopherh@1 | 2 function list = cell2list(cells, separator) |
christopherh@1 | 3 |
christopherh@1 | 4 list = ''; |
christopherh@1 | 5 |
christopherh@1 | 6 if ~isempty(cells) |
christopherh@1 | 7 |
christopherh@1 | 8 list = cells{1}; |
christopherh@1 | 9 |
christopherh@1 | 10 for i = 2:length(cells) |
christopherh@1 | 11 |
christopherh@1 | 12 list = [list separator cells{i}]; |
christopherh@1 | 13 |
christopherh@1 | 14 end |
christopherh@1 | 15 end |