title: how to display array element-by-element in specific format in matlab
body: <p>I am using matlab sprintf to print numbers stored in 1D array with specific format. For example, I have two array A=[1 2 3], B=[4 5 6], I expect it to print as</p>
  
  <pre><code>1/4; 2/5; 3/6
  </code></pre>
  
  <p>I try the following command</p>
  
  <pre><code>p=[1 2 3];
  q=[4 5 6];
  sprintf('%d/%d; ', p, q)
  </code></pre>
  
  <p>But it gave me</p>
  
  <pre><code>1/2; 3/4; 5/6
  </code></pre>
  
  <p>Any way to work it around? Thanks</p>