title: Using repmat() to equalise the length of two audio files Matlab
body: <p>Having a slight issue with the repmat() function. </p>
  
  <p>I've got two audio files that I'm using for cross synthesis in Matlab, I want to make the second audio file repeat so it's the same length as the first one.</p>
  
  <p>Currently I'm doing</p>
  
  <pre><code>c = size(y());
  rep = y2(1:end,:);
  y(1:end,:) = repmat(rep,1, c(1))
  </code></pre>
  
  <p>Yet it's not making a 1D matrix, any suggestions?</p>
  
  <p>y and y2 are just the y values of each song converted to mono.</p>
  
  <p>Thanks!</p>