title: I got an error using 'char' in matlab
body: <p>I need some help guys. Im new to matlab and i really dont know how to solve this problem. It gives me this error " Error using char
  Cell elements must be character arrays. " I need to simulate a contest and input 10 participants, and for each one the number of likes and comments. And if the number of likes is 0 he/ she its excluded from this contest.</p>
  
  <p>Error in data(line 40)
          fprintf('The third winner is %s \n',char(cv))</p>
  
  <pre><code>n=input('Number of people ');
  cs=zeros(1,n);
  id1=cell(1,n);
  for i=1:n
      id=input('Name','s');
      l=input('Number of likes is ');
      c=input('Numarul  of comments is');
      if (l==1)
          id1{i}=id;
          cs(i)=c;
      end
  end
  ord=0;
  while(ord~=1)
      ord=1;
      for i=1:n-1
          if (cs(i)&lt;cs(i+1))
              ord=0;
              aux=cs(i);
              cs(i)=cs(i+1);
              cs(i+1)=aux;
              aux1=id1{i};
              id1{i}=id1{i+1};
              id1{i+1}=aux1;
          end
      end
  end
  ct=id1{randi(numel(id1))};
  fprintf('the winner is %s \n',ct)
  csn='roata';
  cv='salam';
  cpl='ciorba';
  for i=1:4
      if (((strcmp(id1(i),ct))==0) &amp;&amp; (strcmp(csn,'roata')))
          csn=id1(i);
          fprintf('The second winner is %s \n',char(csn))
      end
      if (((strcmp(id1(i),ct))==0) &amp;&amp; ((strcmp(id1(i),csn))==0) &amp;&amp; (strcmp(cv,'salam')))
          cv=id1(i);
          fprintf('The third winner is %s \n',char(cv))
      end
      if (((strcmp(id1(i),ct))==0) &amp;&amp; ((strcmp(id1(i),csn))==0) &amp;&amp; ((strcmp(id1(i),cpl))==0) &amp;&amp; (strcmp(cv,'ciorba')))
          cv=id1(i);
          fprintf('the third winner is %s \n',char(cpl))
      end
  end
  </code></pre>