title: My function in Octave doesn't work
body: <p>I'm working with Octave4.2.1 and I have written this function (in the file <code>OctaveFunction.m</code>):</p>
  
  <pre><code>    function y = squareNumber(x)
        y = x^2;
      endfunction
  </code></pre>
  
  <p>but if I call the function, I get this error:</p>
  
  <blockquote>
    <p><code>error: 'squareNumber' undefined near line 1 column 1</code></p>
  </blockquote>
  
  <p>and if I try to call the function in this way:</p>
  
  <pre><code>OctaveFunction squareNumber(4)
  </code></pre>
  
  <p>I get another error:</p>
  
  <blockquote>
    <p><code>warning: function name 'squareNumber' does not agree with function filename 'C:\Users\HOME\Desktop\OctaveFunction.m'
    error: for x^A, A must be a square matrix.  Use .^ for elementwise power.
    error: called from
        OctaveFunction at line 2 column 7</code></p>
  </blockquote>
  
  <p>Where did I go wrong? Thank you!</p>