MATLAB: How to write sparse matrix aparse matrix Dear All, How to write sparse matrix as a small matrix in one page, I have 100×100 matrix and need to write the output in one page so i can read the matrix easily. regards, Imola Best Answer disp() the matrix, or find() on the matrix; see http://www.mathworks.com/help/matlab/math/accessing-sparse-matrices.htmlor if you are looking for a graphic output, perhaps spy() the matrix. Related SolutionsMATLAB: Non square matrix rotation matrix.' MATLAB: Repeat a matrix as digonal element in a new matrix Hi,I usually use blkdiag:A = rand(2,3);ACell = repmat({A}, 1, 10);BigA = blkdiag(ACell{:});Titus Related QuestionPlotting sparsity pattern of a matrixCombine many matrices into oneHow to convert 1100111 to 1 1 0 0 1 1 1I have a mxn matrix. How to change its elements to either 1 or 0 based on a condition such as: if an element of mxn is How to change the columns of matrix using row index
Best Answer