title: How do I declare a symbolic matrix in Octave?
body: <p>In MatLab, you can declare symbols pretty easily:</p>
  
  <pre><code>syms a,b
  mat = [a,b]
  </code></pre>
  
  <p>I'm getting an error, however, when I try to replicate this in Octave. This is the code I'm using:</p>
  
  <pre><code>&gt; symbols
  &gt; a = sym("a")
  a =
  
  a
  &gt; b = sym("b")
  b =
  
  b
  &gt; mat = [a,b]
  error: octave_base_value::resize (): wrong type argument `ex'
  error: octave_base_value::resize (): wrong type argument `&lt;unknown type&gt;'
  octave-3.2.3.exe:4:C:\Octave\3.2.3_gcc-4.4.0\bin
  </code></pre>
  
  <p><strong>How do you declare a symbolic matrix in octave?</strong></p>