MATLAB: Could anyone help me how to reshape the matrix. reshape I am having two matrices A=[3×2] and B=[1×2] i want to reshape the size of A such that it should be equal to B,which mean A should contain only the first row. could anyone please help me on this. Best Answer You are not asking to do a reshape, which does not change the total number of elements.A = A(1,:); Related SolutionsMATLAB: How to not display plot using imshowpair, or imfuse C = zeros( max(size(A,1), size(B,1)), size(A,2) + size(B,2), max(size(A,3),size(B,3)), class(A));C(1:size(A,1), 1:size(A,2), 1:size(A,3)) = A;C(1:size(B,1), size(A,2)+1:end, 1:size(B,3)) = B;Now you can display C. MATLAB: How to add zeros column and row at the beginning of matrix new_A=zeros(size(B));new_A(2:end,2:end)=A; Related QuestionConfusion matrix misclassification problemDoes MATLAB 6.5 (R13) report the wrong SIZE and LENGTH result on a matrix returned by RESHAPEFilter values in an array based on some conditionHow to plot two vectors of different lengths
Best Answer