| Description |
%-------------------------------------------------------------
% out=phrase2word(phrase, <delimiter,token>) | Version 1.1
%-------------------------------------------------------------
% Cuts input phrase separated by delimiter into words.
% Consecutive delimiters are recognized and the "missing"
% words inbetween are marked by default with a whitespace.
% Useful to extract data labels from a csv-header line.
%-------------------------------------------------------------
% Example:
% words = phrase2word('time,data')
%
% results in {'time','data'}
% By default, ',' is chosen as delimiter, thus
%
% words = phrase2word('time,data',',')
%
% has the same result.
%
% words = phrase2word('time,,data',',','*')
%
% gives {'time' '*' 'data'} with "*" marking empty word.
%-------------------------------------------------------------
% Start: 2003-08-11, S. Billig | Last Change: 2004-11-30, SB
%-------------------------------------------------------------
% has the same result as above. |