title: matlab divide sentences into words
body: <p>Im new in matlab and ım trying to take the input from matlab gui which will be entered by a user and divide that sentence into words but I need to have them as letters because Im using a robot to write them. this letters will be send to these robots. Im using two robots and for example when I write 'lou reed' in text when ı press the button matlab function will hold this 2 words in to different char arrays so that ı can have the letters c(i) like this and send them to process. so far ı wrote these but ım stuck.  </p>
  
  <pre><code>c = char(get(handles.edit1,'String'));
  int count1;
  int count2;
  char word1;
  char space=" ";
  
  for i=1:length(c)
      int t = isequal(c(i),space);
      if(t==0)
          count1=count1+1;
          word1=;%ım trying to add the char here to find the new word
      else
  
      end
  end
  </code></pre>
  
  <p>ı dont know what to do ı searched but ı couldnt find something usefull maybe ı wasnt looking right.
  Anything would be helpful, thankss</p>