title: How can I fix a nonconformant arguments error in Octave when I am not using an operator?
body: <p>I am a bit new to octave and programming in general. I am trying to create a vector of Forces that apply to multiple bodies, but when I try to initialize the vector variable, octave returns an error when calculating <code>Fn1</code>:</p>
  
  <pre><code>menuTest: =: nonconformant arguments (op1 is 1x1, op2 is 2x1)
  </code></pre>
  
  <p>I know that if you try to use an operator on two matrices that don't agree, it will return an error, however, that is not what I am trying to do here.</p>
  
  <p>I have tried: changing the commas to semicolons and removing them completely.  </p>
  
  <p>I expect the terminal to output a vector array, but it produces an error.</p>
  
  <pre><code>function menuTest
      Xs = 0
      rs =0
      G = 6.67*10e-11
      S = 2e30
      dt = .1
      m = 6e20
      e = .0167
      b = a*sqrt(1-(e.^2))
      X(1) = a
      Y(1) = 0
      vX(1) = 10
      vY(1) = 0
      %P2
      a1 = a + 14e6
      X1(1) = a1
      Y1(1) = 0
      r(1) = sqrt(X(1).^2 + Y(1).^2)
      r1(1)  = sqrt(X1(1).^2 + Y1(1).^2)
      %Force on body 1
      F(1) = (S)*(G*m)/((rs(1)-r(1)).^2)
      F21(1) = (S)*(G*m)/((r1(1)-r(1)).^2)
      %Force on body 2
      F12(1) = (S)*(G*m)/((r(1)-r1(1)).^2)
      F1(1) = (S)*(G*m)/(r1(1).^2)`
      %Force vectorization initialization
      Fn1(1) = [F(1),F21(1)]
      unit(1) = [(Xs(1)-X(1)), (X1(1)-X(1))]
      unitFn1(1) = dot(Fn1,unit(1))
      Fn2(1) = [F1(1),F12(1)]
      unit1(1) = [(Xs(1)-X(1)),(X(1)-X1(1))]
      unitFn2(1) = dot(Fn2,unit1(1))
  endfunction
  </code></pre>
  
  <p>I expect <code>Fn1</code> to output a vector with <code>F</code> and <code>F21</code> and it's elements. Instead, I am getting </p>
  
  <pre><code>error: menuTest: =: nonconformant arguments (op1 is 1x1, op2 is 1x2)
  </code></pre>