MATLAB: Matrix Resize Rows and Cols matrixresize I have imported data as a matrix called A with a size 48 x 52 (48 Rows X 52 Columns). How do I RESIZE the matrix to 48 X 48? Thanks, Amanda Best Answer A - your matrix (48x52)Anew = zeros(48,48); % new matrix with size 48x48s = size(A);for jj = 1:s(1) Anew(jj,:) = interp1(1:s(2),A(jj,:),linspace(1,s(2),size(A2,2)));end Related SolutionsMATLAB: Find a rows in matrix and its position in that matrix out{ ceil( find(ii == 4)/2 ) } MATLAB: Matrix operation resize matrix A=rand(36,44) % exampleA(36+1:48,44+1:48)=0 Related QuestionI want to know the position of all the 1’s in the matrix in form of rows and cols ?Transforming vector into triangular matrixInsert a two by two block into a matrixComputing the rows of the matrixHow to subtract row 1 of matrixA from row 2 of matrixB (matrices are of same size)
Best Answer