IRootLab
An Open-Source MATLAB toolbox for vibrational biospectroscopy
fel.m
Go to the documentation of this file.
1 %>@ingroup string
2 %>@file
3 %> @brief Returns the first element of a cell or the argument itself if it is not a cell.
4 
5 %> @param c
6 %> @param n Bonus
7 function s = fel(c, n)
8 if iscell(c)
9  if nargin() == 1
10  n = 1;
11  end;
12  s = c{n};
13 else
14  s = c;
15 end;
function fel(in c, in n)