From: Amit on 25 Jun 2010 17:35 how can I store a matrix having short integers as sparse matrix. I used following code but it did not work- b=zeros(10,10); b(2,:)=[1,2,3,4,5,6,7,8,9,10]; c=uint16(b); d=sparse(c); Please somebody help me. I need to store a very big matrix. Thanks, Amit
From: James Tursa on 25 Jun 2010 18:36 "Amit " <amitsingh.singh(a)gmail.comp> wrote in message <i037et$s03$1(a)fred.mathworks.com>... > how can I store a matrix having short integers as sparse matrix. > I used following code but it did not work- > > b=zeros(10,10); > b(2,:)=[1,2,3,4,5,6,7,8,9,10]; > c=uint16(b); > d=sparse(c); > > Please somebody help me. I need to store a very big matrix. MATLAB does not support sparse matrices for any type other than double. James Tursa
From: Matt J on 26 Jun 2010 07:42 "James Tursa" <aclassyguy_with_a_k_not_a_c(a)hotmail.com> wrote in message <i03b0l$e53$1(a)fred.mathworks.com>... > MATLAB does not support sparse matrices for any type other than double. double and logical, you mean. But I guess that won't help.
|
Pages: 1 Prev: Backup - software Next: Changing value of heaviside for 0 |