%function Splitin2 = GASplit(vin); %Divides matrix into 2 halves by columns, then calls function to interleave %the two halves. [r,c] = size(OrigData); %Get dimensions of matrix. halfc = c/2 firsthalf = OrigData(:,1:halfc); halfc=halfc+1 secondhalf = OrigData(:,halfc:c); GAMatrixMerge(firsthalf, secondhalf); % = sprintf[vin,'-a'] % secondhalf = sprintf[vin,'-b']