title: Input argument "b" is undefined
body: <p>i am new in matlab and search everything. I am writing a the function. i could not able to understand why this error is comning :"Input argument "b" is undefined." . shall i intialise b =0 ? whereas it is the parameter coming from input console. my code:</p>
  
  <pre><code>function f = evenorodd( b )
  %UNTITLED2 Summary of this function goes here
  %zohaib
  %   Detailed explanation goes here
  %f = b;%2;
  f = [0 0];
  f = rem(b,2);
  if f == 0 
      disp(b+ 'is even')
  else 
      disp(b+ 'is odd')
  
  end
  </code></pre>
  
  <p>console:</p>
  
  <pre><code>??? Input argument "b" is undefined.
  
  Error in ==&gt; evenorodd at 6
  f = rem(b,2);
  </code></pre>