title: How to give name the rows and columns of a matrix in Matlab 2015b?
body: <p>I have the following problem with Matlab version 2015b: I got a matrix A and two vectors B and N ( with fitting dimenstion and consisting of integer entries). I want to use make a table in the form of sketch below (where &quot;z&quot; is just the letter z). I guess it would be easiest to use the array2table function, I just can not make it work. Here is an example for A, B, and N:</p>
  <pre><code>N = [ 3; 1; 0; 3 ];
  B = [ 2; 4; 3; 5; 1; 2 ];
  A = [ 2, -1, 1, 5; 
        -1, 3, 1, -1;
        -4, 1, -2, 6;
        2, 2, -1, 3;
        -1, -1, 1, -1;
        -2, 3, -1, 1 ];
  </code></pre>
  <p>Could you help me?</p>
  <p><a href="https://i.stack.imgur.com/gMX1M.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/gMX1M.jpg" alt="enter image description here" /></a></p>