I added a .JPG file to Matlab workspace, Matlab loaded it as a 2D array of 300x300 unsigned integers in range 0-255. I am interested in analyzing one of the rows of this matrix. For that purpose I simply extracted the row using
row = ones(300);
row = myMatrix(150, :);
Then, I realized that in order to compare it with another array, which is of length 450 elements, I need to expand my row vector by a factor of 1.5, i.e. stretch my array to 450 samples. For that purpose, I tried using resample function as follows :
row2 = resample(row, 3, 2);
But I received error saying that resample function does not support data of unit8 type.
Is there a way to achieve interpolation using resample in my case, or would you recommend another approach?