MATLAB: Define a Sparse Matrix without sparse function. sparse without sparse function Hello I wonder if it is possible to define a sparse matrix without using the sparse function, is that I simply put the values in the position I want. Thanks. Best Answer The sparse command can use multiple input formats:< http://www.mathworks.com/help/techdoc/ref/sparse.html>E.g.,"S = sparse(i,j,s) uses m = max(i) and n = max(j) ... Uses vectors i, j, and s to generate an m-by-n sparse matrix such that S(i(k),j(k)) = s(k)" Related SolutionsMATLAB: Bdschur algorithm in Matlab According to the file bdschur.m, this uses LAPACK's DTRSYL and SLICOT's MB03RD functions. See >> edit bdschur MATLAB: Sparse matrix blkdiag(speye(30886,30886),sparse(68709-30886,130478-30886)); Related QuestionSparse matrix conversion??Sparse Matrix indexing
Best Answer