MATLAB: I want to enter a matrix into a zero matrix except one row matrixmatrix into matrix I have one matrix A(11,14) and i want to enter it inside the zero matrix B(10,14) except the row 6.How i will do that? Best Answer B = A([1:5,7:11],:); Related SolutionsMATLAB: Fastest way to divide a matrix columns into two matrices %If A is your matrixA=randi(10,5,8) % examplec5=A(:,5) % the fifth columnB=A(:,[1:4 6:m]) % remaining matrix MATLAB: Making zeros in matrix except for the first row and column. I = rand(256,256); % be your matrix I(2:end,2:end) = 0 ; Related QuestionHow to get the diagonal and a subdiagonal in the same matrixRetrieve all non-zeros indices except the first one for each rowMatrix indexing all indexes except oneHow to process a subset of a matrix
Best Answer