MATLAB: Could anyone help me how to reshape the matrix.


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,:);