IRootLab
An Open-Source MATLAB toolbox for vibrational biospectroscopy
params2str2.m
Go to the documentation of this file.
1 %>@ingroup conversion string codegen
2 %>@file
3 %>@brief Converts a parameters cell into a string
4 %>
5 %> This one makes no distinction between even and odd elements in @c params.
6 %> @sa param2str.m
7 %>
8 %> Not recursive.
9 %
10 %> @param params Must be a cell of strings
11 %> @return s
12 function s = params2str2(params)
13 
14 s = '{';
15 for i = 1:length(params)
16  if i > 1; s = [s ', ']; end;
17  s = [s params{i}];
18 end;
19 s = [s '}'];
function params2str2(in params)