title: improfile output length doesn't comply with input vectors length
body: <p>I have this code which draws a circle consisted of 50 points. I want to calculate the intensity of each point, so I used improfile. </p>
  
  <pre><code>THETA=linspace(0,2*pi,50);  
  RHO=ones(1,50)*radius;
  [X,Y] = pol2cart(THETA,RHO);
  X=X+center(1);
  Y=Y+center(2);
  
  C = improfile(BW4,X,Y); % BW4 is a binary thinned image
  </code></pre>
  
  <p>I know that C must be a vector containing intensity of 50 points that I produced but when I write size(C) in work space I get this:</p>
  
  <pre><code>&gt;&gt; size(C)
  
  ans =
  
  142     1
  </code></pre>
  
  <p>I can't understand the problem with my code? any idea why it's working this way? thanks</p>