title: How to check the length/number of characters of a string inputted by a user in Octave?
body: <p>Have seen people ask about length of an input but never relative to Octave. </p>
  
  <p>I would like to test the length of the user's response to an input command. I have already tried this method:</p>
  
  <pre><code>x=input('enter a set of numbers')
  length(x)
  </code></pre>
  
  <p>This doesn't work. Entering "2345" will give you a length of 1, and entering "abcdefg" gives you an "undefined variable: abcdefg" error.</p>
  
  <p>I have also tried:</p>
  
  <pre><code>x="blahblah"
  length(x)
  </code></pre>
  
  <p>This gives the proper length, but I'm trying to test the length when x is equal to an input from a user, not predefined text.</p>
  
  <p>For example, If the user inputs 5 numbers or 5 characters, I want the length to to be 5.</p>
  
  <p>This length must also be usable in a vector. For example:</p>
  
  <pre><code>vector=[1,2,5,7,length(x),4]
  </code></pre>
  
  <p>How do I test the amount of CHARACTERS (letters or numbers) in the user's response?</p>