MATLAB: How to expand matrix matrix Hi I have matrix 1 row 12225 columns and I want to colerate in with matrix 1 row 12230 columns how to I round them to same length please Best Answer You can shorten the second vector by removing the extra elementsA; % 1x12225 vectorB; % 1x12230 vectorB_new = B(1:numel(A));corrcoef(A, B_new) Related SolutionsMATLAB: Create a matrix where the elements are the sums of the elements of an old matrix You say matrix in your post, but then you give an example of a column vector (100x1). I'll assume you mean column vector. A = randn(100,1); B = filter([1 1],1,A); B = B(2:2:end); MATLAB: Expand Array >> doc repmat Related QuestionHow to create a vector of elements with a number of row equal to a numberExpanding MatrixDeleting rows and columns of a matrixExpanding matrixHow can i store data in zero matrix
Best Answer