You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: stacktimes.m
    path of file: ./repos/gptoolbox/mesh
    
    the code of the file until where you have to start completion: function SV = stacktimes(S,V)
  % STACKTIMES Multiply each matrix in a vertical stack of matrices, S, times
  % each vector in a list of row-vectors, V. Equivalent to the following:

    
function SV = stacktimes(S,V)
  % STACKTIMES Multiply each matrix in a vertical stack of matrices, S, times
  % each vector in a list of row-vectors, V. Equivalent to the following:
  %     s = size(V,1);
  %     n = size(V,2);
  %     m = size(S,1)/s;
  %     SV = zeros(s,m);
  %     for ii = 0:(s-1)
  %      SV(ii+1,:) = (S((m*ii+1):(m*ii+m),:)*(V(ii+1,:)'))';
  %     end