IRootLab
An Open-Source MATLAB toolbox for vibrational biospectroscopy
strip_quotes.m
Go to the documentation of this file.
1 %>@ingroup string conversion
2 %>@file
3 %>@brief Removes double quotes from both ends of the string.
4 
5 function s = strip_quotes(s)
6 if ~isempty(s)
7  if s(1) == 34
8  s = s(2:end);
9  end;
10  if s(end) == 34
11  s = s(1:end-1);
12  end;
13 end;
function strip_quotes(in s)