comparison core/tools/implode.m @ 0:cc4b1211e677 tip

initial commit to HG from Changeset: 646 (e263d8a21543) added further path and more save "camirversion.m"
author Daniel Wolff
date Fri, 19 Aug 2016 13:07:06 +0200
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:cc4b1211e677
1 function out = implode(divider, input);
2 % out = implode(divider, input)
3
4 out = [];
5 for i = 1:numel(input)
6
7 % only put divider inbetween data
8 if i > 1
9
10 out = sprintf('%s%s%d', out, divider, input(i));
11 else
12
13 out = sprintf('%d', input(i));
14 end
15 end