diff --git a/tsg_io/readAsciiTsg.m b/tsg_io/readAsciiTsg.m index d4e945f1feca32fa73f732ca997a54bb087a5362..7f51535769a5198dbff9556dff58736d2fef03fa 100644 --- a/tsg_io/readAsciiTsg.m +++ b/tsg_io/readAsciiTsg.m @@ -76,7 +76,18 @@ while ~OK % ------------------------ ind = strmatch( Para, tsgNames); if ~isempty( ind ) - tsg.(Para) = char( c{1}(2) ); + + % patch added for composed name + % ----------------------------- + a = c{1}(2:end)'; + str=[]; + for i=a + str = sprintf('%s %s', str, char(i)); + end + + % copy to tsg struct & remove leading and trailing white space + % ------------------------------------------------------------ + tsg.(Para) = strtrim(str); end end