title: how to plot a plane spanned by two vectors in matlab?
body: <p>I have a matrix, lets say</p>
  
  <pre><code>value = [ 1,0,0;0,1,0]
  </code></pre>
  
  <p>and need to plot a plane in the space generated by these vectors, something like these:
  <a href="https://i.stack.imgur.com/e9Cmj.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/e9Cmj.png" alt="enter image description here"></a><br>
  with the next code</p>
  
  <pre><code> tt=-0.5:0.1:1.5;
   ss=-0.5:0.1:1.5;
   [s,t]=meshgrid(ss,tt);
   grid on
   mesh(0+(value(1:1)*t)+(value(2:1)*s),0+(value(1:2)*t)+(value(2:2)*s),(0+value(1:3)*t)+(value(2:3)*s))
   view(45, 45);
  </code></pre>
  
  <p>but all that I got is the next figure
  <a href="https://i.stack.imgur.com/Y0b3c.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Y0b3c.png" alt="enter image description here"></a><br>
  Matlab sends me an error in the line of the mesh command.</p>
  
  <p><strong>Mesh instruction explained</strong><br>
  I used the idea that a plane need a point and two vectors in the next way<br>
  Point (0,0,0)<br>
  u=1,0,0<br>
  v=0,1,0<br>
  so in parametric equations you would have</p>
  
  <p>w=(x=(0+t+0s),y=(0+0t+s),z=(0+0t+0s)<br>
  but the idea is generalize to any matrix of the size, so instead of fixed values, it is expressed in terms of the matrix elements in the mesh part.
  I have seen a couple of methods, but these involve the extremes of the plane (that depends on the vectors, so isnt always known) and use something like patch.</p>