MATLAB: Interpolating row data in a matrix

interpolationmatrixrow

I have a large set of data that I need to linearly interpolate evenly by a factor of 22. The way that the data is organised means that the each row of data needs to be interpolated instead of each column, how do I make it so that rows of data are interpolated instead of columns?

Best Answer

Sat down with someone and worked it out together:
num_rows = length(a); num_columns = 22;
b = zeros(num_rows,num_columns); c = zeros(num_rows,num_columns);
for i = 1:num_rows
count = a(i,13);
int_c(i,:) = (0:1/(num_columns - 1):1)*c(i,count);
int_b(i,:) = interp1(b(i,1:count), b(i,1:count), new_thick(i,:),'spline');
end
end